副标题: Advanced Web Standards Solutions
作者: Andy Budd / Simon Collison / Cameron Moll
出版社: Apress
出版年: 2009-10-29
页数: 366
定价: USD 39.99
装帧: Paperback
ISBN: 9781430223979
作者: Andy Budd / Simon Collison / Cameron Moll
出版社: Apress
出版年: 2009-10-29
页数: 366
定价: USD 39.99
装帧: Paperback
ISBN: 9781430223979
内容简介 · · · · · ·
The Internet abounds with information on CSS based design. However it's spread across a large and disparate group of sites and can be very difficult to find. The purpose of this book is to pull all this information together in one place, thus creating a definitive guide to modern CSS based techniques. The book can be read cover to cover, with each chapter building on the previo... (展开全部)
The Internet abounds with information on CSS based design. However it's spread across a large and disparate group of sites and can be very difficult to find. The purpose of this book is to pull all this information together in one place, thus creating a definitive guide to modern CSS based techniques. The book can be read cover to cover, with each chapter building on the previous one. However it can equally be used as a reference book, dipping into each chapter or technique to help solve specific problems. This second edition contains: New examples and updated browser support information New case studies from Simon Collison and Cameron Moll CSS3 examples, showing new CSS3 features, and CSS3 equivalents to tried and tested CSS2 techniques What you'll learn The best practice concepts in CSS design. The most important (and tricky) parts of CSS Identify and fix the most common CSS problems How to deal with the most common bugs Completely up to date browser support information Covers CSS3 as well as CSS2 showing you the future of CSS Who is this book for? This book will be aimed towards intermediate web designers/developers although the examples should be simple enough for novice designers/developers with a basic understanding of CSS to follow along with. Readers will probably have read beginner/intermediate instructional books such as Web Standards Solutions and will be looking for more practical and in-depth information. This book is likely to have a broad appeal, attracting intermediate developers wanting to improve their skills as well as advanced developers wanting a useful reference. The CSS 2/3 content of the book is delivered in a way that allows readers to learn CSS2 techniques that they can implement now in professional work, and then gem up on CSS3 techniques if desired, if they want to start looking towards the future.
作者简介 · · · · · ·
Andy Budd国际顶尖的网页设计师,著名的Web标准倡导者。他是网页设计咨询公司Clearleft(www.clearleft.com)的创意总监,曾经组织了英国首届Web2.0会议。他在Web设计方面著述甚丰,除本书外,他还曾经撰写了一本Blog设计方面的图书。
豆瓣成员常用的标签(共20个) · · · · · ·
按有用程度 按页码先后 最新笔记
-
第260页
小白变棉花糖 (做一个有范儿的程序猿)
Internet Explorer conditional comments <!-- [if IE] <link rel="stylesheet" type="text/css" href="/css/ie.css" /> --> <!-- [if IE 6] <link rel="stylesheet" type="text/css" href="/css/ie6.css" /> --> IE6以下的版本 <!-- [if lt IE 6] <link rel="stylesheet" type="text/css" href=&... (更多)Internet Explorer conditional comments<!-- [if IE]<link rel="stylesheet" type="text/css" href="/css/ie.css" />--><!-- [if IE 6]<link rel="stylesheet" type="text/css" href="/css/ie6.css" />-->IE6以下的版本<!-- [if lt IE 6]<link rel="stylesheet" type="text/css" href="/css/ie5x.css" />-->非IE浏览器<!--[if !IE]>--><link rel="stylesheet" type="text/css" href="/css/advanced.css" /><!--<![endif]--><!--[if gte IE 6]><!--><link rel="stylesheet" type="text/css" href="/css/modern.css" /><!--<![endif]--> (收起)2011-10-16 11:51:10 回应
-
第253页
小白变棉花糖 (做一个有范儿的程序猿)
Bug hunting basics 1 使用高级浏览器作为主力浏览器(Chrome,Firefox..),确保CSS在他们显示无异常再去IE浏览器查找兼容性问题 偶表示这点的效率问题,如果使用IE作为主力浏览器,再去高级浏览器修改兼容性Bug会不会更高效一点 2 try to avoid bugs in the first place 优先考虑非Hack的解决办法,毕竟达到一种效果有多种办法 3 Isolate the problem (更多)Bug hunting basics1 使用高级浏览器作为主力浏览器(Chrome,Firefox..),确保CSS在他们显示无异常再去IE浏览器查找兼容性问题偶表示这点的效率问题,如果使用IE作为主力浏览器,再去高级浏览器修改兼容性Bug会不会更高效一点2 try to avoid bugs in the first place 优先考虑非Hack的解决办法,毕竟达到一种效果有多种办法3 Isolate the problem (收起)2011-10-16 11:29:46 回应
-
第1页
#intro {font-weight: bold;} id 选择器 .date-posted {color: #ccc;} class 选择器 #main-content h2 {font-size: 1.8em;} main-content 和 h2之间可以不是直接的父子关系 a:link {color:blue;} a:visited {color:green;} a:hover, a:focus, a:active {color:red;} tr:hover {background-color: red;} input:focus {background-color:yellow;} a:visited:hover {color:olive;} *{ padding: 0; margin: 0;} all... (更多)#intro {font-weight: bold;} id 选择器 .date-posted {color: #ccc;} class 选择器#main-content h2 {font-size: 1.8em;} main-content 和 h2之间可以不是直接的父子关系a:link {color:blue;} a:visited {color:green;} a:hover, a:focus, a:active {color:red;} tr:hover {background-color: red;} input:focus {background-color:yellow;} a:visited:hover {color:olive;}*{ padding: 0; margin: 0;} all#nav>li { background: url(folder.png) no-repeat left top; padding-left: 20px;} 书上说只影响直接子元素 实测不是(FF3.6 safari5.0.4)h2 + p { font-size: 1.4em; font-weight: bold; color: #770;} h2后面紧跟着的第一个p 被影响到了 之间不能有其他元素a[rel="nofollow"] {padding-right: 20px;color:red;} a[rel] {font-size: 20px;} 属性选择器 有这个属性 或 属性等于某个值 div#main-content div.news-story h2.first {color: red;}p, div, h1, h2, h3, ul, ol, dl, li {color: black;} ,表示一个定义元素<link href="/css/basic.css" rel="stylesheet" type="text/css" /> <style type="text/css"> <!-- @import url("/css/advanced.css");--></style>Breaking your CSS into multiple style sheets used to be a common approach and was the method I recommended in the first edition of this book. However, recent browser benchmarking has shown that importing style sheets can be slower than linking to them.意思是说import会慢一些There are two other speed related problems when using multiple CSS files. First off, multiple files will result in more packets being sent from the server, and it’s the number, rather than the contents, of these packets that affects download time. Furthermore, browsers are only able to download a limited number of concurrent files from the same domain at any one time. For older browsers, this limit used to be a paltry two files, although modern browsers have upped this to eight. So in an older browser, if you have three style sheets, you would have to wait for the first two files to download before it starts downloading the third. Because of these reasons, a single, well-structured CSS file can help improve download speeds considerably.css分不到多个文件 会导致浏览器下载文件的速度 因为浏览器在一个domain并发下载文件的数量是一定的 一般是2个box model从外到内 margin border padding content#myBox { margin: 10px; padding: 5px; width: 70px;} width 的长度指的是content的 盒子的长度是width+padding*2+margin*2 = 100 ie5是902个元素相接时 相交处的margin取最大值一个元素包含另一个元素时 相交处的margin取最大值 magrin 如其名一样 就是用来融合空间的vertical padding, borders, and margins will have no effect on the height of an inline box. Similarly, setting an explicit height or width on an inline box will have no effect either. The horizontal box formed by a line is called a line box, and a line box will always be tall enough for all the line boxes it contains. There is another caveat, though—setting the line height can increase the height of this box. Because of these reasons, the only way you can alter the dimensions of an inline box is by changing the line height or horizontal borders, padding, or margins.inline box 的padding, borders, and margins 是不起效果的 , line biox 的高度取决与他包含的所有元素 唯一能影响inline box行高的就是 line-height#myBox { position: relative; left: 20px; top: 20px;}With relative positioning, the element continues to occupy the original space, whether or not it is offset. As such, offsetting the element can cause it to overlap other boxes.relative元素继续占着他原来地方的空间 但显示在其他的地方An absolutely positioned element is positioned in relation to its nearest positioned ancestor. If the element has no positioned ancestors, it will be positioned in relation to the initial containing block. Depending on the user agent, this will either be the canvas or the HTML element.As with relatively positioned boxes, an absolutely positioned box can be offset from the top, bottom, left, or right of its containing block. This gives you a great deal of flexibility. You can literally position an element anywhere on the page.absolutely positioned 元素的位置起点是他最近的positioned!的祖先的位置的起点 但这个祖先要是positioned!! 如果没有 就是html页面的起点作为他的起点absolute 元素是超脱了文件流的The main problem people have with positioning is remembering which type ofpositioning is which. Relative positioning is “relative” to the element’s initialposition in the flow of the document, whereas absolute positioning is “relative”to nearest positioned ancestor or, if one doesn’t exist, the initial container block.relative 的起点是他自身在box流里面的起点, absolute的起点是他最近的positioned的祖先节点的起点 <div style="position:relative;"> <div>first born</div> <div style="position:relative;top:50px;">second</div> <div style="position:absolute;top:50px;">third</div> </div> 试着去掉上面第一个div的position然后对比看下third的位置就明白 “absolute的起点是他最近的positioned的祖先节点的起点”的意思了, 在第一个div之前要有其他的box才看得出区别, 换句话 第一个div的起点!=html的起点The higher the z-index, the higher up the box appears in the stack.Absolutely positioning a box in relation to a relatively positioned ancestor workswell in most modern browsers. However, there is a bug in IE 5.5 and IE 6 onWindows. If you try to set the position of the absolutely positioned box relativeto the right or bottom of the relatively positioned box, you need to make surethe relatively positioned box has some dimensions set. If not, IE will incorrectlyposition the box in relation to the canvas instead. You can read more about thisbug and possible fixes in Chapter 9. The simple solution is to set the width andheight of your relative box to avoid this problemie6 absolute 有bugA floated box can either be shifted to the left or the right until its outer edge touches the edge of its containing box or another floated box. Because floated boxes aren’t in the normal flow of the document, block boxes in the regular flow of the document behave as if the floated box wasn’t there.float box在普通文件流里不占空间 他会接触到他容器的边缘 或 另一个float元素 , 就好像有普通的文件流 在一个容器内部还可以有一个float流If the containing block is too narrow for all of the floated elements to fit horizontally, the remaining floats will drop down until there is sufficient space (see Figure 3-15). If the floated elements have different heights, it is possible for floats to get “stuck” on other floats when they drop down.如果float box的容器太窄了 float会从上到下依次排列到容易的边缘 但有可能被之前的卡住 而不能到容器的最边缘虽然float元素是跳出了普通的文件流的而不占空间的, 但假如之后的元素是line box的话, 是会给float留空间的 环绕图片的文字 就是列子clear: left right both 相当于给元素添加margin以便不和float元素在同一行 这样看来float其实还是占了文件流空间h1 { padding-left: 30px; background-image: url(/img/bullet.gif); background-repeat: no-repeat; background-position: left center;} 给一个文字前添加图片 padding-left 让文字所在的内容右移,给图片让出空间 图片则放在left centera{ display: block; width: 6.6em; line-height: 1.4; text-align: center; text-decoration: none; border: 1px solid #66a300; background-color: #8cca12;color: #fff;} Creating links that look like buttons by using line- height instead, the text will always sit in the middle of the boxCSS spritesa.tooltip {position: relative;} a.tooltip span { display: none;} a.tooltip:hover span { display: block; position: absolute; top: 1em;left: 2em;} pure css tooltipol.pagination { margin: 0; padding: 0; list-style-type: none;} ol.pagination li { float: left; margin-right: 0.6em;} Creating a simple horizontal nav bar (收起)2011-04-14 18:32:23 回应
-
第27页
小白变棉花糖 (做一个有范儿的程序猿)
Pseudo-classes /* makes all unvisited links blue */ a:link {color:blue;} /* makes all visited links green */ a:visited {color:green;} /* makes links red when hovered or activated. focus is added for keyboard support */ a:hover, a:focus, a:active {color:red;} /* makes table rows red when hovered over */ tr:hover {background-color: red;} /* makes input elements yellow when focus is appli... (更多)Pseudo-classes/* makes all unvisited links blue */a:link {color:blue;}/* makes all visited links green */a:visited {color:green;}/* makes links red when hovered or activated.focus is added for keyboard support */a:hover, a:focus, a:active {color:red;}/* makes table rows red when hovered over */tr:hover {background-color: red;}/* makes input elements yellow when focus is applied */input:focus {background-color:yellow;}Unsurprisingly, IE 6 only pays attention to the :active and :hover pseudo-classes when applied to an anchor link, and ignores :focus completely. IE7 supports :hover on arbitrary elements but ignores :active and :focus. (收起)2011-10-09 12:33:02 回应
-
第260页
小白变棉花糖 (做一个有范儿的程序猿)
Internet Explorer conditional comments <!-- [if IE] <link rel="stylesheet" type="text/css" href="/css/ie.css" /> --> <!-- [if IE 6] <link rel="stylesheet" type="text/css" href="/css/ie6.css" /> --> IE6以下的版本 <!-- [if lt IE 6] <link rel="stylesheet" type="text/css" href=&... (更多)Internet Explorer conditional comments<!-- [if IE]<link rel="stylesheet" type="text/css" href="/css/ie.css" />--><!-- [if IE 6]<link rel="stylesheet" type="text/css" href="/css/ie6.css" />-->IE6以下的版本<!-- [if lt IE 6]<link rel="stylesheet" type="text/css" href="/css/ie5x.css" />-->非IE浏览器<!--[if !IE]>--><link rel="stylesheet" type="text/css" href="/css/advanced.css" /><!--<![endif]--><!--[if gte IE 6]><!--><link rel="stylesheet" type="text/css" href="/css/modern.css" /><!--<![endif]--> (收起)2011-10-16 11:51:10 回应
-
第253页
小白变棉花糖 (做一个有范儿的程序猿)
Bug hunting basics 1 使用高级浏览器作为主力浏览器(Chrome,Firefox..),确保CSS在他们显示无异常再去IE浏览器查找兼容性问题 偶表示这点的效率问题,如果使用IE作为主力浏览器,再去高级浏览器修改兼容性Bug会不会更高效一点 2 try to avoid bugs in the first place 优先考虑非Hack的解决办法,毕竟达到一种效果有多种办法 3 Isolate the problem (更多)Bug hunting basics1 使用高级浏览器作为主力浏览器(Chrome,Firefox..),确保CSS在他们显示无异常再去IE浏览器查找兼容性问题偶表示这点的效率问题,如果使用IE作为主力浏览器,再去高级浏览器修改兼容性Bug会不会更高效一点2 try to avoid bugs in the first place 优先考虑非Hack的解决办法,毕竟达到一种效果有多种办法3 Isolate the problem (收起)2011-10-16 11:29:46 回应
书评 · · · · · · (共55条)
我来评论这本书
-
最有用的好评
-
最有用的中差评
汇总一下这本中译本的评价 20/22有用
热门评论 最新评论
汇总一下这本中译本的评价
-
- 大森林 china-pub上的: 我想杀死这个翻译 又糟蹋了一本好书 Chapter 8: Hacks and Filters 第八章 招数和过滤器 9.1 Bug Hunting bug捕捉 Controlling content area with descendant selectors ...... (9回应)2006-10-25 20/22有用来自 人民邮电出版社2006版
为什么不推荐——Re:人民邮电出版社编辑来信
-
- 沈蚊 - 改名叫蔡高兴得了。(偶是高中生) 仅从应用的角度而言,《精通CSS》是一本非常的“好用”的书。 同时也是一本非常“不好读”的书——从翻译角度看,本书最大的问题是语言逻辑混乱以及自创的专业词汇。 就后者来说,专业词汇可以从很多地方获得,像是蓝色理想之类专业社区,或参考一些台湾版的相关书籍——甚至可以直接上原文,比如说“招数”,每次看到这个词的...... (11回应)2006-11-18 12/13有用来自 人民邮电出版社2006版
为什么推荐?
-
- 沈蚊 - 改名叫蔡高兴得了。(偶是高中生) 因为原版是很好的书,但对于英文很烂的同学们(比如说偶)来说。。中文版还是比英文看的顺一些的——英文的偶一天也就看两、三页,中文的一天能看20页呢~~ 不过。。。不要拿中译本里面的名词、术语拿出去“现”,,很丢人的说! so,,最好还是参照着看。...... (2回应)2006-11-03 2/4有用来自 人民邮电出版社2006版
也有不少好的评价嘛。
-
- 刘江 我觉得大家应该向出版社多提一些建设性意见,促使他们在重印时改进。 ---------- 今天刚收到该书,粗略的看了下,感觉不错,纸张比《框架设计(第二版)CLR via C#》一书的纸张要好。排版也错落有致,看起来不会吃力。至于翻译方面,也还可以,没有什么很晦涩的句子(可能是我对一般翻译的书的期望不是太高)。-...... (2回应)2006-11-16 4/7有用来自 人民邮电出版社2006版
一本深入浅出的好书
-
- Tony Yet(敢于改变你的看法。) 本书由资深网站设计师Andy Budd撰写,正如作者在引言中所言: “CSS Mastery is aimed at anybody with a basic knowledge of (X)HTML and CSS. If you have just recently dipped your toes int......2007-08-03 2/2有用来自 friends of ED2006版
【华文网页设计义工之家】开始招募啦!
-
- FREEBIRD 【华文网页设计义工之家】开始招募啦! 有爱心当义工,有困难找义工,让我们以无私的关爱温暖需要帮助的人,让我们用完美的设计温暖需要帮助的公益组织,让我们用完美的作品完善中国的义工团队。 “华文网页设计义工之家”是一个纯民间、纯公益的“网页设计”义工团队,是由社会各界致力于公益事业的“网页设计”......2011-12-06 来自 人民邮电出版社2006版
不错!
-
- nearby 买了书的前辈,都怎么看的呀?我实在看得头痛呀!刚才有个同学说他在猎豹网校上学的,象看电影一样,可容易了。有空要去看一下了。否则我会累倒在这里了。 ......2011-11-22 来自 人民邮电出版社2006版
经典
-
- MoLice 第一版已经是经典了,距离现在有好几年,上个星期去图书馆发现已经进了第二版,封面换新了,里面的内容也更新了很多。有做修改,有添加了很多css3的内容。一些比较老久的方法、思想已经去除了。总的来说,前端开发必读书目之一。...... (3回应)2011-03-17 来自 人民邮电出版社2010版
好内容,烂翻译
-
- zhaomin0574 说起内容,绝对是没得说。 说起这本书的翻译,看得我想自杀,太痛苦了。什么翻译嘛,有时候,前后不通,强烈怀疑翻译的人是通过google翻译,然后再调整下语序,稍作修改而来的,也怀疑他是不懂css,还是翻译完后没有自己好好地看过一遍。 人民群众赚钱不容易,不能那这种翻译来忽悠人民大众的嘛,推荐看英文,至少你能活下去。 ......2010-12-07 4/5有用来自 人民邮电出版社2010版
很不错的一本书
-
- jhti(做个低调的高手!) 很不错的一本书。只是有本历史久远了,里面有些问题还在谈IE5。现在已经出了第二版,有想买的朋友可以买第二版,里面增加了CSS3的东西貌似。......2010-11-21 来自 人民邮电出版社2006版
对第一版有好印象的人,继续买回来读吧
-
- イヴ(問題なし。) 引入06的年第一版之后的技术,也因时代验证修正了一些以前的推荐,比如@import会导致下载渲染延迟,link链入更好;尽量减少CSS文件个数等等; 但看到更多的还是对CSS3等新技术的展望和讨论. 技术型的书的确没什么特别的评论需求不是吗....自己看完觉得"啊,好值!"就足够了. 我也很喜欢Andy叙述的......2010-08-08
"CSS Mastery"的论坛 · · · · · ·
| 第二版和第一版目录对比 | 来自trismile | 1 回应 | 2010-05-06 |
| 南京前端开发招聘 | 来自小雨滴 | 2012-02-15 |
- > 点这儿转让 有25人想读,手里有一本闲着?
这本书的其他版本 · · · · · · ( 全部4 )
- 人民邮电出版社版 2006 / 1149人读过 / 有售
- 人民邮电出版社版 2010 / 171人读过 / 有售
- friends of ED版 2006-02-13 / 236人读过
以下豆列推荐 · · · · · · (全部)
谁读这本书?
订阅关于CSS Mastery的评论:
feed: rss 2.0



