码迷,mamicode.com
首页 > Web开发 > 详细

CSS相对定位实现DIV层的投影(阴影)效果

时间:2015-04-29 21:49:00      阅读:135      评论:0      收藏:0      [点我收藏+]

标签:css相对定位实现div层的投影阴影效果

<html>
<head>
<title>DIV层阴影</title>
<style>
.out {
 position:relative;
background:#E4E4E4; 
margin:8px auto;
width:300px
}
.in {
background:#fff; 
border:1px solid #666;
padding:10px 5px;
position:relative; 
top:-5px;
left:-5px;
}
</style>
</head>
<body>
<div style="width:298px; margin-left:198px;">
   <div class="out">
 <div class="in" >CSS相对采用相对定位实现DIV层的投影(阴影)效果</div>     
</div>
</div>
<div><A href="http://www.999jiujiu.com/">http://www.999jiujiu.com/</A></div>
</body>
</html>

CSS相对定位实现DIV层的投影(阴影)效果

标签:css相对定位实现div层的投影阴影效果

原文地址:http://blog.csdn.net/life66881/article/details/45370693

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!