004
<
meta
charset
=
"utf-8"
/>
005
<
title
>Smashing HTML5!</
title
>
007
<
link
rel
=
"stylesheet"
href
=
"css/main.css"
type
=
"text/css"
/>
012
<script src="js/IE8.js" type="text/javascript"></script><![endif]-->
015
<link rel="stylesheet" type="text/css" media="all" href="css/ie6.css"/><![endif]-->
018
<
body
id
=
"index"
class
=
"home"
>
020
<
header
id
=
"banner"
class
=
"body"
>
021
<
h1
><
a
href
=
"#"
>Smashing HTML5! <
strong
>HTML5 in the year <
del
>2022</
del
> <
ins
>2009</
ins
></
strong
></
a
></
h1
>
024
<
li
class
=
"active"
><
a
href
=
"#"
>home</
a
></
li
>
025
<
li
><
a
href
=
"#"
>portfolio</
a
></
li
>
027
<
li
><
a
href
=
"#"
>blog</
a
></
li
>
028
<
li
><
a
href
=
"#"
>contact</
a
></
li
>
031
</
header
>
<!-- /#banner -->
033
<
aside
id
=
"featured"
class
=
"body"
><
article
>
035
<
img
src
=
"images/temp/sm-logo.gif"
alt
=
"Smashing Magazine"
/>
039
<
h2
>Featured Article</
h2
>
040
<
h3
><
a
href
=
"#"
>HTML5 in Smashing Magazine!</
a
></
h3
>
044
</
article
></
aside
>
<!-- /#featured -->
046
<
section
id
=
"content"
class
=
"body"
>
047
<
ol
id
=
"posts-list"
class
=
"hfeed"
>
048
<
li
><
article
class
=
"hentry"
>
050
<
h2
class
=
"entry-title"
><
a
href
=
"#"
rel
=
"bookmark"
title
=
"Permalink to this POST TITLE"
>This be the title</
a
></
h2
>
054
<
footer
class
=
"post-info"
>
055
<
abbr
class
=
"published"
title
=
"2005-10-10T14:07:00-07:00"
>
<!-- YYYYMMDDThh:mm:ss+ZZZZ -->
059
<
address
class
=
"vcard author"
>
061
By <
a
class
=
"url fn"
href
=
"#"
>Enrique Ramírez</
a
>
063
</
footer
>
<!-- /.post-info -->
065
<
div
class
=
"entry-content"
>
067
<
p
>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque venenatis nunc vitae libero iaculis elementum. Nullam et justo <
a
href
=
"#"
>non sapien</
a
> dapibus blandit nec et leo. Ut ut malesuada tellus.</
p
>
068
</
div
>
<!-- /.entry-content -->
071
<
li
><
article
class
=
"hentry"
>
075
<
li
><
article
class
=
"hentry"
>
079
</
ol
>
<!-- /#posts-list -->
080
</
section
>
<!-- /#content -->
082
<
section
id
=
"extras"
class
=
"body"
>
083
<
div
class
=
"blogroll"
>
087
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Doctor</
a
></
li
>
088
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Spec (working draft)</
a
></
li
>
090
<
li
><
a
href
=
"#"
rel
=
"external"
>Smashing Magazine</
a
></
li
>
091
<
li
><
a
href
=
"#"
rel
=
"external"
>W3C</
a
></
li
>
092
<
li
><
a
href
=
"#"
rel
=
"external"
>Wordpress</
a
></
li
>
094
<
li
><
a
href
=
"#"
rel
=
"external"
>Wikipedia</
a
></
li
>
095
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Doctor</
a
></
li
>
096
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Spec (working draft)</
a
></
li
>
098
<
li
><
a
href
=
"#"
rel
=
"external"
>Smashing Magazine</
a
></
li
>
099
<
li
><
a
href
=
"#"
rel
=
"external"
>W3C</
a
></
li
>
100
<
li
><
a
href
=
"#"
rel
=
"external"
>Wordpress</
a
></
li
>
102
<
li
><
a
href
=
"#"
rel
=
"external"
>Wikipedia</
a
></
li
>
103
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Doctor</
a
></
li
>
104
<
li
><
a
href
=
"#"
rel
=
"external"
>HTML5 Spec (working draft)</
a
></
li
>
106
<
li
><
a
href
=
"#"
rel
=
"external"
>Smashing Magazine</
a
></
li
>
107
<
li
><
a
href
=
"#"
rel
=
"external"
>W3C</
a
></
li
>
108
<
li
><
a
href
=
"#"
rel
=
"external"
>Wordpress</
a
></
li
>
110
<
li
><
a
href
=
"#"
rel
=
"external"
>Wikipedia</
a
></
li
>
112
</
div
>
<!-- /.blogroll -->
127
</
div
>
<!-- /.social -->
128
</
section
>
<!-- /#extras -->
130
<
footer
id
=
"contentinfo"
class
=
"body"
>
131
<
address
id
=
"about"
class
=
"vcard body"
>
132
<
span
class
=
"primary"
>
133
<
strong
><
a
href
=
"#"
class
=
"fn url"
>Smashing Magazine</
a
></
strong
>
135
<
span
class
=
"role"
>Amazing Magazine</
span
>
136
</
span
>
<!-- /.primary -->
138
<
img
src
=
"images/avatar.gif"
alt
=
"Smashing Magazine Logo"
class
=
"photo"
/>
139
<
span
class
=
"bio"
>Smashing Magazine is a website and blog that offers resources and advice to web developers and web designers. It was founded by Sven Lennartz and Vitaly Friedman.</
span
>
141
</
address
>
<!-- /#about -->
143
</
footer
>
<!-- /#contentinfo -->
146
</
html
>
The CSS
004
Description: Sample layout for HTML5 and CSS3 goodness.
006
Author: Enrique Ramírez
011
@import
url
(
"reset.css"
);
012
@import
url
(
"global-forms.css"
);
017
background
:
#F5F4EF
url
(
'../images/bg.png'
);
019
font-size
:
87.5%
;
/* Base font size: 14px */
020
font-family
:
'Trebuchet MS'
, Trebuchet,
'Lucida Sans Unicode'
,
'Lucida Grande'
,
'Lucida Sans'
,
Arial
,
sans-serif
;
028
h
2
{
font-size
:
1.571em
}
/* 22px */
029
h
3
{
font-size
:
1.429em
}
/* 20px */
030
h
4
{
font-size
:
1.286em
}
/* 18px */
031
h
5
{
font-size
:
1.143em
}
/* 16px */
032
h
6
{
font-size
:
1em
}
/* 14px */
042
a img {
border
:
0px
;
text-decoration
:
none
;}
046
text-decoration
:
underline
;
049
background-color
:
#C74350
;
051
text-decoration
:
none
;
052
text-shadow
:
1px
1px
1px
#333
;
056
p {
margin-bottom
:
1.143em
;}
057
* p:last-child {
margin-bottom
:
0
;}
059
strong, b {
font-weight
:
bold
;}
060
em, i {
font-style
:
italic
;}
062
::-moz-selection {
background
:
#F6CF74
;
color
:
#fff
;}
063
::selection {
background
:
#F6CF74
;
color
:
#fff
;}
067
list-style
:
outside
disc
;
068
margin
:
1em
0
1.5em
1.5em
;
072
list-style
:
outside
decimal
;
073
margin
:
1em
0
1.5em
1.5em
;
076
dl {
margin
:
0
0
1.5em
0
;}
077
dt {
font-weight
:
bold
;}
078
dd {
margin-left
:
1.5em
;}
081
blockquote {
font-style
:
italic
;}
087
table {
margin
: .
5em
auto
1.5em
auto
;
width
:
98%
;}
090
thead th {
padding
: .
5em
.
4em
;
text-align
:
left
;}
094
tbody td {
padding
: .
5em
.
4em
;}
转载于:https://www.cnblogs.com/wqj0405/archive/2010/09/15/1826861.html