CSS css ET
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS css ET相关的知识,希望对你有一定的参考价值。
body {
text-align: center;
color: #777777;
background-color:#ffffff;
}
#container {
display: table;
width: 750px;
margin: 0 auto;
}
h1 {
margin: 8px 0px 0px 0px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 15px;
color: #505050;
letter-spacing: 4px;
padding-bottom: 3px;
border-bottom: 1px #777777 solid;
background-color:#ffffff;
}
/******************************
Header + Navigation Menu
******************************/
#header {
width: 246px;
height: 40px;
float:left;
padding: 25px 0px 25px 0px;
font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
font-size: 36px;
color:#aaaaaa;
background-color:#ffffff;
}
#nav {
clear: both;
text-align: left;
width: 750px;
height: 22px;
border-top: 2px #777777 solid;
border-bottom: 2px #777777 solid;
}
#nav ul {
margin: 0;
padding: 0;
list-style: none;
}
#nav ul li {
margin: 0;
float: right;
}
#nav a {
float: left;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
letter-spacing: -1px;
padding: 2px 10px 0px 10px;
color: #666666;
text-decoration: none;
background-color:#ffffff;
}
#nav a:hover {
color: #cc0000;
background-color:#ffffff;
}
/******************************
News Updates Column
******************************/
#newsupdate {
width: 240px;
float: left;
}
.newstitle {
margin-top: 8px;
width: 233px;
text-align: left;
padding-left: 7px;
font-family: Arial, Helvetica, sans-serif;
font-size: 17px;
font-weight: bold;
color: #cc0000;
float: left;
background-color:#ffffff;
}
.newstitle span {
color: #666666;
background-color:#ffffff;
}
#newsupdate p {
margin: 0;
padding-left: 3px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 14px;
text-align: left;
color: #505050;
background-color:#ffffff;
}
.date {
width: 240px;
float: left;
margin-top: 7px;
text-align: right;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 12px;
color: #6A6A6A;
background-color:#ffffff;
}
/******************************
Welcome Message IMG+TEXT
******************************/
.rightcontainer {
width: 510px;
float: right;
}
#welcome {
width: 480px;
height: 150px;
padding: 82px 0px 10px 30px;
border-bottom: 1px #ccc solid;
background: url(images/apple.gif) top right no-repeat;
text-align:left;
font-family: "Trebuchet MS", Arial, Verdana, sans-serif;
font-size: 36px;
color:#aaaaaa;
background-color:#ffffff;
}
/******************************
Webpage Contents
******************************/
#content {
margin-top: 10px;
padding-left: 10px;
width: 500px;
float: right;
}
#content h3 {
width: 500px;
text-align: left;
font-family: "Trebuchet MS", Helvetica, sans-serif;
color: #777777;
float:left;
margin: 0;
background-color:#ffffff;
}
#content p {
margin: 0;
padding: 0;
text-align: left;
font-family: "Trebuchet MS", Helvetica, sans-serif;
font-size: 16px;
color: #000;
background-color:#ffffff;
}
/******************************
images in content if you want - align left or right;
ex: <img src="blah.jpg" class="left" />
******************************/
#content .left {
float: left;
color : #777777;
background-color:#ffffff;
}
#content .right {
float: right;
color : #777777;
background-color:#ffffff;
}
/******************************
Footer
******************************/
#footer {
float: left;
margin-top: 10px;
padding-top: 3px;
width: 750px;
border-top: 1px #a4a4a4 solid;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
background-color:#ffffff;
}
#footer a {
color: #cc0000;
text-decoration:none;
background-color:#ffffff;
}
#footer a:active, a:visited {
color: #cc0000;
background-color:#ffffff;
}
#footer a:hover {
color: #666666;
background-color:#ffffff;
}
以上是关于CSS css ET的主要内容,如果未能解决你的问题,请参考以下文章