您的位置:首页 > Web前端 > CSS

精通 CSS+DIV 网页样式与布局 43

2016-12-04 15:15 483 查看
</style>

</head>

<body>

<h2>立 春</h2>

<p>自秦代以来,我国就一直以立春作为春季的开始。立春是从天文上来划

分的,而在自然界、在人们的心目中,春是温暖,鸟语花香;春是生长,耕耘播

种。在气候学中,春季是指候(5 天为一候)平均气温 10℃至 22℃的时段。</p>

<p class=”kaiti”>作者: isaac</p>

</body>

</html>

文字大小

<html>

<head>

<title>文字大小</title>

<style>

<!–

p.inch{ font-size: 0.5in; }

p.cm{ font-size: 0.5cm; }

p.mm{ font-size: 4mm; }

p.pt{ font-size: 12pt; }

p.pc{ font-size: 2pc; }

–>

</style>

</head>

<body>

<p class=”inch”>文字大小,0.5in</p>

<p class=”cm”>文字大小,0.5cm</p>

<p class=”mm”>文字大小,4mm</p>

<p class=”pt”>文字大小,12pt</p>

<p class=”pc”>文字大小,2pc</p>

</body>

</html>

文字颜色

<html>

<head>

<title>文字颜色</title>

<style>

<!–

h2{ color:rgb(0%,0%,80%); }
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  css