- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>春天</title>
- <style type="text/css">
- div{
- font-family:"宋体";//字体
- font-size:12px;
- color:#0C3;//字体颜色,这是用十六进制的表示,还可以用单词表示;
- text-indent:2em;//首行缩进两个字符;
- }
- h2{
- font-size:16px;
- color:red;//颜色为红色;
- text-align:center;//居中;
- text-decoration:overline;//上划线;
- }
- span{color:red;}
- </style>
- </head>
- <body>
- <h2>春天</h2>
- <div><span>春季</span>,地球的北半球开始倾向太阳,受到越来越多的太阳光直射,因而气温开始升高。随着冰雪消融,河流水位上涨。<span>春季</span>植物开始发芽生长,许多鲜花开放。冬眠的动物苏醒,许多以卵过冬的动物孵化,鸟类开始迁徙,离开越冬地向繁殖地进发。许多动物在这段时间里发情,因此中国也将<span>春季</span>称为“万物复苏”的季节。<span>春季</span>气温和生物界的变化对人的心理和生理也有影响。</div>
- </body>
- </html>
css文本外观属性
最新推荐文章于 2024-07-21 20:52:32 发布