2006年4月12日

摘要: 先看看效果演示(改变浏览器窗口大小,背景图象会自动伸缩)代码解析主要的HTML代码<div><img id="background" src="rabbit.jpg" alt="" title="" /> </div><div id="fixed"><p>The background image is always 100% x 100%... 阅读全文
posted @ 2006-04-12 05:06 replace 阅读(1149) 评论(0) 推荐(0)
摘要: 代码解析HTML部分<div class="out narrow"><div class="in ltin tpin"><h2>NARROW</h2><p>This is the text that goes in the middle.</p></div></div><!--以上只是第一个文字块... 阅读全文
posted @ 2006-04-12 05:05 replace 阅读(2316) 评论(1) 推荐(0)
摘要: /**default css style**/html, address,blockquote,body, dd, div,dl, dt, fieldset, form,frame, frameset,h1, h2, h3, h4,h5, h6, noframes,ol, p, ul, center,dir, hr, menu, pre { display: block }li { display... 阅读全文
posted @ 2006-04-12 05:04 replace 阅读(333) 评论(0) 推荐(0)
摘要: Webcredible上列出了不少关于CSS使用语法上的小技巧,还是比较实用的。以前很多东西只知道要这么写,可很少去考虑为什么。看来用CSS能做的事情远远比自己所了解的要多。1. CSS字体定义简写规则一般的写法会是这样:font-weight: bold;font-style: italic;font-varient: small-caps;font-size: 1em;line-height:... 阅读全文
posted @ 2006-04-12 05:03 replace 阅读(1117) 评论(0) 推荐(0)
摘要: 代码解析HTML 代码部分<div class="save"><h1><a href="javascript:void(0)" class="dsphead"onclick="dsp(this)"><span class="dspchar">+</span> heading</a></h1><div clas... 阅读全文
posted @ 2006-04-12 05:02 replace 阅读(2295) 评论(0) 推荐(0)
摘要: IE vs FFCSS 兼容要点:DOCTYPE 影响 CSS 处理FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中FF: 设置 padding 后, div 会增加 he... 阅读全文
posted @ 2006-04-12 05:00 replace 阅读(891) 评论(0) 推荐(0)

导航