css完成文本层浮在照片之上示例编码

日期:2021-01-20 类型:科技新闻 

关键词:免费自助建站,手机建站平台,wap建站,免费自助建站平台,H5网站,H5模板建站

 
编码以下:

拷贝编码
编码以下:

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf⑻" />
<title>表明</title>
<meta name="keywords" content="重要词" />
<meta name="description" content="引言" />
<link href="css/global.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<script src="scripts/js/html5.js"></script>
<![endif]-->
<style type="text/css">
*{
padding:0;
margin:0;
}
.images-content{
position: absolute;
z-index: 1;
left: 0;
bottom:0;
width: 100%;
color: #fff;
background: rgba(0,0,0,.7);
height: 54px;
line-height: 54px;
overflow: hidden;
}
.images-wrapper{
width:251px;
height:330px;
position:relative;
}
</style>
</head>
<body>
<div class="images-wrapper">
<img src="images/goods⑴.jpg" alt="产品111" title="产品1"/>
<div class="images-content">
1111111111
</div>
</div>
</body>
</html>