CSS: Float a div on another div, Ex: Text caption on picture
2024-10-13 21:41:39
<style type="text/css">
.figure {
width: 316px;
height: 205px;
display: block;
border-color: azure;
position: relative;
}
.figure img {
z-index:;
}
.figure .caption {
position: absolute;
left:;
right:;
bottom:;
height:;
width:inherit;
display:inline-block;
color: #fff;
background-color: rgba(0,0,0,.5);
z-index:;
}
</style>
<div class="figure">
<img src="http://img-aws.ehowcdn.com/320x208/ehow-tech-blog-us/files/2014/07/google-maps-measure.gif" alt="[Article Image] - How to Supercharge Google Maps" title="How to Supercharge Google Maps" class="image">
<div class="caption"> How to Supercharge Google Maps </div>
</div>
How to Supercharge Google Maps
最新文章
- 从.net转型,聊聊最近一些面试,薪资和想法
- 破解ZIP加密文件密码fcrackzip
- setAttribute()和getAttibute(),getParameter()
- 【Web】Eclipse + Maven + Struts搭建服务器
- awk 两列相减
- splay入门
- 利用Android手机里的摄像头进行拍照
- 第一篇、jQuery的使用
- 仿360手机卫士界面效果android版源码
- cmd 命令设置UTF8
- linux 下编译安装php
- 复习了下自定义style的使用
- Openjudge-计算概论(A)-判断闰年
- SVM原理以及Tensorflow 实现SVM分类(附代码)
- u3d之世界坐标系,屏幕坐标系,视口坐标系,如何获取物体距离摄像机的距离
- HTML文档命名规则
- Java 异常处理流程
- js中的循环
- Django之ModalForm
- [AngularJS] tips技巧收集