没有合适的资源?快使用搜索试试~ 我知道了~
精通CSS PART1
需积分: 0 41 下载量 23 浏览量
2007-11-27
18:40:04
上传
评论
收藏 332KB PDF 举报
温馨提示
试读
11页
HTML中使用DIV和CSS美化布局
资源详情
资源评论
资源推荐
CSS Mastery Errata
Many hands make light work; so if you spot an error that doesn’t appear on this list, please
let me know at errata@andybudd.com.
Page
Error
xix
In the sixth paragraph:
Jason Andrew Andrew Santa Maria,, Dave Shea
Should read:
Jason Andrew Andrew Santa Maria, Dave Shea
(The duplicated middle name is not a typo)
xxiii
Third paragraph reads:
Lastly, for (X)HTML examples that contain repeating data, rather than
writing out every line, the ellipse character (…) is used to denote code
continuation:
Should read:
Lastly, for (X)HTML examples that contain repeating data, rather than
writing out every line, the ellipsis character (…) is used to denote code
continuation:
10
The sixth paragraph reads:
The browser chooses which rendering method to use based on the
existence of a DOCTYPE declaration and the DTD being used. If an XHTML
document contains a fully formed DOCTYPE, it will normally be rendered in
standards mode. For an HTML document, a strict DTD will usually cause the
browser to render the page in standards mode, while a transitional DTD will
cause it to render in quirks mode. A badly formed or nonexistent DOCTYPE
will cause both HTML and XHTML documents to be rendered in quirks
mode.
Should read:
The browser chooses which rendering method to use based on the
existence of a DOCTYPE declaration and the DTD being used. If an XHTML
document contains a fully formed DOCTYPE, it will normally be rendered in
standards mode. For an HTML 4.01 document, a DOCTYPE containing a strict
DTD will usually cause the page to render in standards mode. A DOCTYPE
containing a transitional DTD and URI will also cause the page to render in
standards mode, while a transitional DTD without a URI will cause the page
to render in quirks mode. A badly formed or nonexistent DOCTYPE will
cause both HTML and XHTML documents to be rendered in quirks mode.
10
Last paragraph begins:
DOCTYPE switching is a hack used by browsers to distinguish legacy
documents from more standards-complaint ones.
Should read:
DOCTYPE switching is a hack used by browsers to distinguish legacy
documents from more standards-compliant ones.
11
Third code example on the page reads:
p {color: black;}
a {text-decaration: underline;}
h1 {font-weight: bold;}
Should read:
p {color: black;}
a {text-decoration: underline;}
h1 {font-weight: bold;}
11
Last code example reads:
li a {text-decaration: none;}
Should read:
li a {text-decoration: none;}
12
Second code example begins:
#mainContent h1 {text-size: 1.8em;}
#secondaryContent h1 {text-size: 1.2em;}
Should read:
#mainContent h1 {font-size: 1.8em;}
#secondaryContent h1 {font-size: 1.2em;}
14
First paragraph ends:
In the following example, the list items in the outer list will be bold while
list items in the nested list will remain unaffected:
Should read:
In the following example, the list items in the outer list will be given a
custom icon, while list items in the nested list will remain unaffected:
14
First code example begins:
#nav > li {font-weight: bold;}
Should read:
#nav > li { background: url(folder.png) no-repeat left
top;}
Second code example reads:
#nav li {font-weight: bold;}
#nav li * {font-weight: normal;}
Should read:
#nav li { background: url(folder.png) no-repeat left
top;}
#nav li * {background-image: none;}
15
Third paragraph begins:
One clever way of using the attribute selector is to capitalize on the fact
that IE 6 and below does not support it. You can then apply one style to IE
and another style to more standards-complaint browsers.
Should read:
One clever way of using the attribute selector is to capitalize on the fact
that IE 6 and below does not support it. You can then apply one style to IE
and another style to more standards-compliant browsers.
39
Last paragraph begins:
Let’s have a look at floating and clearing in a little more detail. Say you have
a picture that you want to float to the right of a block of text.
Should read:
Let’s have a look at floating and clearing in a little more detail. Say you have
a picture that you want to float to the left of a block of text.
39-41
Code example reads:
.news img {
float: right;
}
.news p {
float: left;
}
Should read:
.news img {
float: left;
}
.news p {
float: right;
}
41
Second code example reads:
<div class="news">
<img src="news-pic.jpg" />
<p class="clear">Some text</p>
</div>
Should read:
<div class="news clear">
<img src="news-pic.jpg" />
<p>Some text</p>
</div>
41
Fourth paragraph begins:
剩余10页未读,继续阅读
抢我的星期天
- 粉丝: 6
- 资源: 18
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0