You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.8 KiB
CSS
76 lines
1.8 KiB
CSS
/* 代码整理:懒人之家 www.lanrenzhijia.com */
|
|
* {
|
|
-moz-box-sizing: border-box;
|
|
-webkit-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
html, body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body {
|
|
color: #222;
|
|
font: 16px/1.5 Helvetica, Arial, sans-serif;
|
|
}
|
|
h1, h2, h3, p, pre, ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
h1 {
|
|
font-size: 48px;
|
|
line-height: 1;
|
|
margin-bottom: 1em;
|
|
}
|
|
h2 {
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
margin-bottom: 1em;
|
|
}
|
|
h3 {
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
margin-bottom: 1em;
|
|
}
|
|
p, pre, ul {
|
|
margin-bottom: 2em;
|
|
}
|
|
pre {
|
|
background: #fefefe;
|
|
border: 1px solid #dedede;
|
|
overflow-x: auto;
|
|
padding: 2em;
|
|
}
|
|
ul {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
/* 主要代码部分 */
|
|
#nav {list-style: none;margin: 0;position: absolute !important;top: 30px;left:0px;width:100%;height:440px;}
|
|
#nav a {/*background: #ededed;color: #666;*/display: block; font-size: 14px;padding: 5px 10px;text-decoration: none;text-transform: uppercase;}
|
|
#nav a:hover { /*background: #dedede;*/
|
|
}
|
|
#nav .current a { /*background: #666;color: #ededed;*/
|
|
/*background: #fff;
|
|
color: #333;
|
|
font-weight: bold;*/
|
|
/*url(../img/back.png) no-repeat 5px 7px;*/
|
|
/*(http://x.autoimg.cn/car/images/csicon20150812.png) no-repeat*/
|
|
/*5px 7px*/
|
|
/*background: url(img/back.png) no-repeat;*/
|
|
background:#2884fa;
|
|
background-size: 152px 30px;
|
|
box-shadow: -3px 2px 2px 1px rgba(0, 0, 0, .3);
|
|
/*width: 151px;
|
|
height: 30px;*/
|
|
line-height: 20px;
|
|
/*background-position: 0 -229px;*/
|
|
margin: 0 0 0 5px;
|
|
/*padding-right: 45px;*/
|
|
color: #fff;
|
|
font-weight: bold;
|
|
position: relative;
|
|
}
|
|
#container {margin: 0 auto; width: 800px;}
|
|
.section {}
|
|
.section p:last-child { }
|
|
/* 代码整理:懒人之家 www.lanrenzhijia.com */ |