我的第一个网站“爱汉服”
·
网站CSS样式:
body {
margin: 0;
padding: 0;
background: #372412 url(img01.gif) repeat-x;
font-size: 13px;
color: #FFFFFF;
}
body, th, td, input, textarea, select, option {
font-family: Arial, Helvetica, sans-serif;
}
h1, h2, h3 {
text-transform: lowercase;
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
font-weight: normal;
color: #FFFFFF;
}
h1 {
letter-spacing: -2px;
font-size: 3em;
}
h2 {
letter-spacing: -1px;
font-size: 2em;
}
h3 {
font-size: 1em;
}
p, ul, ol {
line-height: 200%;
}
blockquote {
padding-left: 1em;
}
blockquote p, blockquote ul, blockquote ol {
line-height: normal;
font-style: italic;
}
a {
color: #FFEA6F;
}
a:hover {
text-decoration: none;
}
img { border: none; }
/* Header */
#header {
width: 830px;
height: 280px;
margin: 0 auto;
background: url(img02.jpg) no-repeat;
}
/* Logo */
#logo {
height: 170px;
background: url(img07.gif) no-repeat left 65%;
}
#logo h1 {
float: left;
padding: 40px 40px 0 50px;
letter-spacing: -2px;
font-size: 48px;
}
#logo h2 {
float: right;
padding: 68px 0 0 0;
font-size: 24px;
}
#logo a {
text-decoration: none;
color: #372412;
}
/* Gallery */
#gallery {
clear: both;
width: 830px;
height: 300px;
margin: 0 auto;
}
#top-photo h2 {
height: 1.4em;
font-size: 1em;
}
#top-photo p {
margin: 0;
padding: 0 0 10px 0;
}
/* Menu */
#menu {
width: 830px;
height: 70px;
background: url(img03.jpg) no-repeat;
}
#menu ul {
margin: 0;
padding: 0;
list-style: none;
}
#menu li {
display: inline;
}
#menu a {
display: block;
float: left;
width: 166px;
height: 73px;
padding-top: 35px;
text-transform: lowercase;
text-decoration: none;
text-align: center;
letter-spacing: -1px;
font-size: 24px;
color: #FFFFFF;
}
#menu a:hover {
background: url(img09.jpg) no-repeat;
color: #FFFFFF;
}
#menu .active a {
background: url(img09.jpg) no-repeat;
color: #372412;
}
/* Page */
#page {
width: 830px;
margin: 0 auto;
padding: 20px 0;
}
/* Content */
#content {
float: left;
width: 532px;
}
.post {
padding: 0 0 20px 0;
}
.title {
margin: 0;
border-bottom: 2px solid #4A3903;
}
.byline {
margin: 0;
}
.meta {
border-top: 1px solid #4A3903;
text-align: right;
color: #646464;
}
.meta a {
padding-left: 15px;
background: url(img06.gif) no-repeat left center;
font-weight: bold;
}
/* Sidebar */
#sidebar {
float: right;
width: 240px;
}
#sidebar ul {
margin: 0;
padding: 0;
list-style: none;
}
#sidebar li {
}
#sidebar li ul {
padding: 15px 0;
}
#sidebar li li {
padding-left: 30px;
border-bottom: 1px dotted #4A3903;
background: url(img06.gif) no-repeat 15px 50%;
}
#sidebar h2 {
margin: 0;
padding: 20px 0 2px 30px;
background: url(img05.gif) no-repeat left bottom;
border-bottom: 2px solid #4A3903;
}
#sidebar a {
text-decoration: none;
}
#sidebar a:hover {
text-decoration: underline;
}
/* Footer */
#footer {
clear: both;
padding: 20px 0;
background: #FFEA6F;
border-top: 3px solid #E8AD35;
text-align: center;
font-size: smaller;
color: #E8AD35;
}
#footer a {
color: #C28C21;
}
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐



所有评论(0)