CSS做阴影效果

CSS做阴影效果

 <html>
 <head>
 <title>My project</title>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 <style>
 body {
 margin: 0px;
 padding: 20px;
 font-family: verdana;
 font-size: 12px;
 }
 /* CSS container shadow */
 #shadow-container {
 position: relative;
 left: 3px;
 top: 3px;
 margin-right: 3px;
 margin-bottom: 3px;
 }
 
 #shadow-container .shadow2,
 #shadow-container .shadow3,
 #shadow-container .container {
 position: relative;
 left: -1px;
 top: -1px;
 }
 
 #shadow-container .shadow1 {
 background: #F1F0F1;
 }
 
 #shadow-container .shadow2 {
 background: #DBDADB;
 }
 
 #shadow-container .shadow3 {
 background: #B8B6B8;
 }
 
 #shadow-container .container {
 background: #ffffff;
 border: 1px solid #848284;
 padding: 10px;
 }
 /* CSS container shadow */
 </style>
 </head>
 
 <body>
 
 <div id="shadow-container">
 <div class="shadow1">
 <div class="shadow2">
 <div class="shadow3">
 <div class="container">
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
 </div>
 </div>
 </div>
 </div>
 </div>
 
 <br />
 
 <div id="shadow-container">
 <div class="shadow1">
 <div class="shadow2">
 <div class="shadow3">
 <div class="container">
 Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
 </div>
 </div>
 </div>
 </div>
 </div>
 
 </body>
 </html>
 
 

AddThis Social Bookmark Button

相关文档(Relevant Entries)
CSS缩写技巧
如何敏捷你的用户界面开发
Powering Javascript UI with CSS
预览待上传的本地图片
DIV+CSS网页布局常用的方法与技巧
采用DIV+CSS布局的好处
用CSS进行网页样式设计攻略全集
CSS做带三角形的效果
WoW Powerleveling
Posted on May 13, 2007 11:07 AM | | | Comments (0) | | TrackBacks (0)

引用地址(TRACKBACKS)
 
TrackBack URL for this entry:
http://www.wujianrong.com/mt-tb.cgi/5345

发布评论(ADD YOUR COMMENTS)
 
感谢您参与评论;发表您的意见时请保持文章的相关性;不相关的或是单纯宣传的内容可能会被删掉。您的E-mail只是用来确认您发表的文章,不会出现在网页上。
Please keep your comments relevant to this blog entry. Email addresses are never displayed, but they are required to confirm your comments.

称呼(Name):      记住我的个人信息(Remember)
邮箱(Email):
网址(URL):
评论(Add your comments):

相关内容
广告计划