摘要: 伪元素选择器1、first-line伪元素选择器某个元素中第一行文字使用的样式2、first-letter伪元素选择器某个元素中文字的首字母(欧美文字)或者第一个字(中文或日文等汉字)的使用样式3、before伪元素选择器在某个元素之前插入一些内容4、after伪元素选择器在某个元素之后插入一些内容... 阅读全文
posted @ 2011-11-25 10:35 直来直往 阅读(380) 评论(0) 推荐(0) 编辑
摘要: CSS 3中增加了下面三种属性选择器1、[att*=val]如果元素用att表示的属性值中包含val,则该元素使用这个样式。eg. [id*=section]{background-color:red;} //像 id = "subsection"等id包含section的元素都使用这个样式2、[a... 阅读全文
posted @ 2011-11-24 14:59 直来直往 阅读(158) 评论(0) 推荐(0) 编辑
摘要: WEB页面中的每一个元素都有一个style对象来管理元素的CSS样式。Style对象包含每个与CSS样对应的特性。但格式有一点不一样。eg. Color ->style.color; background-color -> style.backgroundColor; 也就是说单个单词的CSS样式,... 阅读全文
posted @ 2010-03-19 09:56 直来直往 阅读(286) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1223344UntitledPage55585859596060616162626363646... 阅读全文
posted @ 2009-10-12 16:26 直来直往 阅读(568) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->test左侧内容中间内容中间内容中间内容中间内容中间内容右侧内容说明:给main元素定义了一个很... 阅读全文
posted @ 2009-09-11 11:31 直来直往 阅读(176) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->test左侧可变内容右侧可变内容中间固定内容说明:该样式中,同样是使用了负边界。由于负边界不能使... 阅读全文
posted @ 2009-09-10 20:20 直来直往 阅读(180) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->test左侧可变内容,左侧可变内容中间可变内容,中间可变内容,中间可变内容,中间可变内容右侧固定... 阅读全文
posted @ 2009-09-10 20:18 直来直往 阅读(235) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->test父元素中右侧的内容content中左侧的元素处于中间的可变元素在页面结构中,最外层的是m... 阅读全文
posted @ 2009-09-10 17:28 直来直往 阅读(166) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1234UntitledPage53132333435使用负边界的元素使用负边界的元素使用负边界... 阅读全文
posted @ 2009-09-10 17:04 直来直往 阅读(126) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1234test52122232425高度自适应的例子,注意元素高度的变化。高度自适应的例子,注... 阅读全文
posted @ 2009-09-10 17:02 直来直往 阅读(125) 评论(0) 推荐(0) 编辑