论坛

标题: CSS-based Formatting [打印本页]

作者: 想念666    时间: 2017-3-20 09:30
标题: CSS-based Formatting
本帖最后由 想念666 于 2017-3-20 17:51 编辑

<!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>CSS-based Formatting</title>
<style type="text/css">
font {
}
h1 {
        font: 26px Verdana, Geneva, sans-serif;
        color: red;
}
p {
        font: 12px Verdana, Geneva, sans-serif;
        color: violet;
}
</style>
</head>

<body>

<h1>ROSENCRANTZ</h1>
<p> I understand you not, my lord.</p>
<h1>HAMLET</h1>
<p> I am glad of it: a knavish speech sleeps in a  foolish ear.</p>
<h1>ROSENCRANTZ</h1>
<p> I understand you not, my lord.</p>
<h1>HAMLET</h1>
<p> I am glad of it: a knavish speech sleeps in a foolish ear.</p>
<h1>>ROSENCRANTZ</h1>
<p> My lord, you must tell us where the body is, and go with us to the king.</p>
<h1>HAMLET</h1>
<p> The body is with the king, but the king is not with  the body. The king is a thing--</p>
<h1>GUILDENSTERN</h1>
<p> A thing, my lord!</p>
<h1>HAMLET</h1>
<p> Of nothing: bring me to him. Hide fox, and all after.</p>
</body></html>
[attach]86560[/attach]





作者: 潜意式    时间: 2017-3-20 18:22
完成很不错哦,看起来理解了选择器的意义。继续加油~
作者: 想念666    时间: 2017-3-21 14:39
潜意式 发表于 2017-3-20 18:22
完成很不错哦,看起来理解了选择器的意义。继续加油~

谢谢,我还得努力,这才是开始呢




欢迎光临 论坛 (http://bbs.qinxue.com/) Powered by Discuz! X3.1