CSS3 text属性
text.html
<head>
<title>text</title>
<link rel="stylesheet" href="style_text.css" type="text/css" />
</head>
<body>
<h2>Hello World</h2>
<p>无穷的远方,无数的人们,都与我有关,很高兴和你建立这份连结。</p>
</body>
text-align
style_text.css
h2 {
text-align: center;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
font-style: italic;
}
p {
text-align: center;
font-style: italic;
font-weight: bold;
}
text-decoration
text-indent
text-shadow
style_text.css
h2 {
text-align: center;
font-family: Georgia, "Times New Roman", Times, serif;
font-weight: bold;
font-style: italic;
}
p {
text-align: center;
text-decoration: underline;
text-shadow: 2px 2px 4px black;
color: white;
font-style: italic;
font-weight: bold;
}