来源:自学PHP网 时间:2015-04-14 14:51 作者: 阅读:次
[导读] 效果图:CSS样式:body{margin:0;padding:0;background:url( bg gif) 0 0 repeat f7f5f5;color: 333;font-family:Cambria, Georgia, serif;font-size:15px;overflow-x:hidden;}a {co...
效果图:
CSS样式:body{
margin:0;
padding:0;
background:url(../bg.gif) 0 0 repeat #f7f5f5;
color:#333;
font-family:Cambria, Georgia, serif;
font-size:15px;
overflow-x:hidden;
}
a {
color:black;
text-decoration:none;
}
a:hover, a:active{
color:black;
}
/* clearfix */
.clearfix {
clear:both;
}
/* container */
#container
{
position:relative;
width:1100px;
margin:0 auto 25px;
padding-bottom: 10px;
}
.grid{
width:188px;
min-height:100px;
padding: 15px;
background:#fff;
margin:8px;
font-size:12px;
float:left;
box-shadow: 0 1px 3px rgba(34,25,25,0.4);
-moz-box-shadow: 0 1px 3px rgba(34,25,25,0.4);
-webkit-box-shadow: 0 1px 3px rgba(34,25,25,0.4);
-webkit-transition: top 1s ease, left 1s ease;
-moz-transition: top 1s ease, left 1s ease;
-o-transition: top 1s ease, left 1s ease;
-ms-transition: top 1s ease, left 1s ease;
}
.border
{
box-shadow: 2px 2px 3px rgba(34,25,25,0.4) ;
-moz-box-shadow: 2px 2px 3px rgba(34,25,25,0.4) ;
-webkit-box-shadow: 2px 2px 3px rgba(34,25,25,0.4) ;
cursor:pointer;
}
.grid .closeimg
{
position : absolute;
top : -25px;
right : -16px;
width : 50px;
height : 50px;
display:none;
}
.grid strong {
border-bottom:1px solid #ccc;
margin:10px 0;
display:block;
padding:0 0 5px;
font-size:17px;
}
.grid .meta{
text-align:right;
color:#777;
font-style:italic;
}
.grid .imgholder img{
max-width:100%;
background:#ccc;
display:block;
}
HTML代码:
|
自学PHP网专注网站建设学习,PHP程序学习,平面设计学习,以及操作系统学习
京ICP备14009008号-1@版权所有www.zixuephp.com
网站声明:本站所有视频,教程都由网友上传,站长收集和分享给大家学习使用,如由牵扯版权问题请联系站长邮箱904561283@qq.com