优秀css案例欣赏

*{
margin: 0;
padding: 0;
list-style: none;
}


body{
background: #E7EAEC;
font-size: 12px/1.5 tahoma, arial, "Hiragino Sans GB";
color: #666;
background: #E7EAEC;
}


a {
color: #42A6F5;
text-decoration: none;
}


a:hover{
color: #2196F3;
}


aside{
background: #373737;
position: absolute;
left: 0;
height: 100%;/*怎么起作用了?*/
width: 200px;
padding-top: 20px;
}


.container{
margin-left: 200px;
}


header {
/*width: 100%;默认值就是100%*/
height: 40px;
background: #fff;
font-size: 14px;
padding: 0 15px;
}


.main{
margin: 15px;
}


.row {
width: 100%;
overflow: hidden;/*清除浮动的黑科技,或者clear:both;*/
}


.col {
float: left;
}


.col-12{
width: 100%;
}


.col-7{
width: 58.3%;
}


.col-5{
width: 41.6%;
}


aside a {
display: block;
padding: 10px 10px 10px 40px;
color:#ccc;
}


aside .current a{
background: #00B6E3;
color: #fff;
}


.header-nav {
float: right;
/*line-height: 40px;放在这里或者放在下面*/
}


.header-nav >li {
/*或者float: left;也可以*/
display: inline-block;/*此时有个4px的间隔*/
/*position: relative;*/
line-height: 40px;/*对齐的好办法,没有它浮出框也不会与header的下边界对齐*/
padding: 0 25px;
}


.header-nav >li> a {
/*display: block;*/
/*padding: 0px 25px;与上面的等价*/
}


.drop-list {
z-index: 1;
display: none;
position: absolute;
background: #fff;
border-radius: 3px;
border: 1px solid #ddd;
width: 100px;
font-size: 12px;
}


.header-nav li:hover{
background: #f9f9f9;
}


.header-nav>li .drop-list{
/*right: 0;*/
}


.header-nav li:hover .drop-list {
display: block;
}


.drop-list a {
display: block;
padding: 5px 20px;
line-height: 1.5em;
}


.drop-list li:hover {
background: #f9f9f9;
}


.box {
background: #fff;
margin: 0 15px 15px 0;
padding: 15px;
min-height: 50px;
position: relative;
}


.box h3{
font-size: 14px;
color: #777;
}


.col:last-child .box{
margin-right: 0;
}


.box .refresh {
position: absolute;
top: 15px;
right: 15px;
}


.application .overview {
float: left;
width: 33.3333%;
padding: 10px 0;
}
/*清除浮动的常规做法*/
.application:after{
display: table;
clear: both;
content: "";
}


.overview-main{
font-size: 14px;
margin-bottom: 3px;
}


.overview-number{
font-size: 26px;
margin: 0 .3em;
}


.overview-other{
color: #999;
}


.hero-item {
position: relative;
border-bottom: 1px dashed #ddd;
padding-bottom: 10px;
margin-top: 10px;
color: #999;
line-height: 26px;
}


.hero-time{
position: absolute;
top: 0;
right: 0;
}


.hero-content {
color: #333;
/*font-size: 10px;*/
/*margin-bottom: 5px;*/
}


.hero-item:last-child{
border: none;
}

转载于:https://www.cnblogs.com/john8169/p/9780571.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值