css实现文字层浮在图片之上示例代码

(编辑:jimmy 日期: 2024/9/22 浏览:2)

css实现文字层浮在图片之上示例代码 
代码如下:

复制代码代码如下:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<title>说明</title>
<meta name="keywords" content="关键词" />
<meta name="description" content="摘要" />
<link href="css/global.css" rel="stylesheet" type="text/css" />
<!--[if IE]>
<script src="/UploadFiles/2021-03-30/html5.js"><![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="/UploadFiles/2021-03-30/goods-1.jpg"><div class="images-content">
1111111111
</div>
</div>
</body>
</html>
一句话新闻
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。