css笔记
There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.
<!--
/* Pretty Stuff
================================== */
/* Zero down margin and paddin on all elements */
* {
margin: 0;
padding: 0;
}
body {
font: 62.5%/1.6 "Lucida Grande", "Lucida Sans", "Lucida Sans Unicode", Verdana, sans-serif;
background-color:#D4D4D4;
}
h1 {
font-size: 2.4em;
font-weight: normal;
}
h2 {
font-size: 2.0em;
font-weight: normal;
}
p, li {
font-size: 1.4em;
}
h1, h2, p {
margin: 1em 0;
}
#branding {
height: 50px;
background-color:#b0b0b0;
padding: 20px;
}
#branding h1 {
margin: 0;
}
#mainNav {
list-style: none;
}
#secondaryContent h2 {
font-size: 1.6em;
margin: 0;
}
#secondaryContent p {
font-size: 1.2em;
}
#footer {
background-color:#b0b0b0;
padding: 1px 20px;
}
/* The Core Technique
================================= */
body {
text-align: center;
min-width: 760px;
}
#wrapper {
width: 85%;
margin: 0 auto;
text-align: left;
background: #fff url(images/nav-faux-col.gif) repeat-y 23% 0;
}
#wrapper2 {
background: url(images/secondary-faux-col.gif) repeat-y 78% 0;
}
#mainNav {
width: 23%;
float: left;
}
#content {
width: 75%;
float: right;
}
#mainContent {
width: 66%;
margin: 0;
float: left;
}
#secondaryContent {
width: 31%;
min-width: 10em;
display: inline; /* :KLUDGE: Fixes IE double margin float bug */
float: right;
}
#footer {
clear: both;
}
/* add some padding to the contentse in the main nav and secondary content areas */
#mainNav, #secondaryContent {
padding-top: 20px;
padding-bottom: 20px;
}
#mainNav *, #secondaryContent * {
padding-left: 20px;
padding-right: 20px;
}
#mainNav * *, #secondaryContent * * {
padding-left: 0;
padding-right: 0;
}
-->
2682

被折叠的 条评论
为什么被折叠?



