摘要: 一、使用缩写可以帮助减少你CSS文件的大小,更加容易阅读。css缩写的主要规则如下: 颜色 16进制的色彩值,如果每两位的值相同,可以缩写一半,例如:#000000可以缩写为#000;#336699可以缩写为#369; 盒尺寸 通常有下面四种书写方法: property:value1; 表示所有边都是一个值value1; property:value1 value2; 表示top和bottom的... 阅读全文
posted @ 2008-11-17 18:27 Ready 阅读(285) 评论(0) 推荐(0)
摘要: 脚本说明:第一步:把如下代码加入〈head>区域中 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 第二步:把如下代码加入区域中 Code highlighting produced by Actipro CodeHigh... 阅读全文
posted @ 2008-11-17 18:07 Ready 阅读(838) 评论(2) 推荐(0)
摘要: HTML: 以下为引用的内容: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> Item one Subitem one Subitem two Subitem three Subitem four Item two Item thr... 阅读全文
posted @ 2008-11-17 17:51 Ready 阅读(504) 评论(0) 推荐(0)
摘要: 单行一列以下是引用片段: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->body { margin: 0px; padding: 0px; text-align: center; } #content { margin-left:auto... 阅读全文
posted @ 2008-11-17 13:24 Ready 阅读(3039) 评论(0) 推荐(0)
摘要: 以下以 IE 代替 Internet Explorer,以 MF 代替 Mozzila Firefox 1.doctype 影响 css 处理 2.ff: div 设置 margin-left, margin-right 为 auto 时已经居中, ie 不行 3.ff: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-l... 阅读全文
posted @ 2008-11-17 12:04 Ready 阅读(278) 评论(0) 推荐(0)
摘要: 以下是引用片段: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->DEMOS zero dollars advertising page wrapping text around imagesstyled formactive focushover... 阅读全文
posted @ 2008-11-17 11:30 Ready 阅读(527) 评论(1) 推荐(0)
摘要: 有时候,我们用CSS创建一个高度自适应布局,如何保证页脚(footer)在内容不超过一屏的情况下始终保持在布局最下方是一个比较头疼的事。我看过一些利用绝对定位的例子,但总感觉不是那么完美,经过一下午的研究总结出一个利用负值外补丁的方法来实现这个效果的方法,兼容IE5.0+,Opera 8.5+,Firefox 1.5+。下面我们看步骤:1、为了让浏览器识别高度100%我们需要先给 html 和 b... 阅读全文
posted @ 2008-11-17 11:08 Ready 阅读(509) 评论(0) 推荐(0)
摘要: 1.尺寸 a)800*600能照顾到所有网友的电脑,但相当是张“小报”。 b)1024*768渐成主流。1024*768能比800*600多出一栏的信息。 c)正文页采用自适应设计,能在正文页做更多相关内容。首页也可以尝试自适应的设计。自适应设计的核心是要留出宽度伸缩自如的栏。 d)在1024*76模式下,页面的长度不易超过10屏。 e)随着电脑升级换代,分辨率提高,电脑屏幕能够提供的面积越来越... 阅读全文
posted @ 2008-11-17 11:00 Ready 阅读(1466) 评论(0) 推荐(0)