首页 > Web开发 > 详细

css 图片

时间:2015-05-13 18:55:17      阅读:200      评论:0      收藏:0      [点我收藏+]

 

<div class="image">
<a href="#" target="_self">
<img src="picture.jpg" alt="p" width="200px" height="200px">
</a>
<div class="text">8888888</div>
</div>
<div class="image">
<a href="#" target="_self">
<img src="picture.jpg" alt="p" width="200px" height="200px">
</a>
<div class="text">8888888</div>
</div>
<div class="image">
<a href="#" target="_self">
<img src="picture.jpg" alt="p" width="200px" height="200px">
</a>
<div class="text">8888888</div>
</div>

 

 

body{
height: auto;
width: 70%;
margin: 10px auto;
}
li{
/* 水平排列*/
display: inline;
/* 内边距为3px*/
padding: 3px;
padding-right: 33px;
/* visibility: hidden;*/
}
.image{
border: 1px solid darkgray;
width: auto;
height: auto;
float: left;
margin: 5px 5px;
text-align: center;
}
img{


/*透明度*/
opacity: 0.4;
margin: 5px;

}
.text{

/* 外边距与底部距离*/
margin-bottom: 5px;
font-size: 12px;
}

css 图片

原文:http://www.cnblogs.com/xiezefeng/p/4500841.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!