<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
.banner_pic {
width: 100%;
height: 284px;
border: seagreen solid 2px;
}
</style>
</head>
<body>
<div class="banner_pic">
<a href=""
style="background:rgba(0,0,0,0)
url(./images/zczx.png) no-repeat center center;
display:block;width:100%;height:100%;"
></a>
</div>
</body>
</html>
标签:百分比,缩放,电脑,html,自动,banner
From: https://www.cnblogs.com/photo520/p/17767280.html