<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="css/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>遠方的路 - DIV+CSS</title><link>http://www.ug-frog.com/</link><description>丑蛙：活出自己，让生命拥有一切可能！ - </description><generator>RainbowSoft Studio Z-Blog 1.8 Arwen Build 81206</generator><language>zh-CN</language><copyright>Copyright (C) 2006-2012 ug-Frog.com All Rights Reserved. </copyright><pubDate>Thu, 09 Sep 2010 12:34:37 +0800</pubDate><item><title>IE6下解决Png透明的最佳方法</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/107.html</link><pubDate>Tue, 08 Dec 2009 23:35:27 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/107.html</guid><description><![CDATA[<p>1、非常小的javascript文件：1kb！<br />2、解决因为IE的滤镜属性所带来的影响。<br />3、无论是img元素或background-image属性，都能有效果。<br />4、在加载页面之前就能自动运行。或者就一丁点的元素。<br />5、允许自动高宽。<br />6、使用起来超级简单。<br /><strong>如何使用：</strong><br />1）、下载zip 然后，添加下面的代码到你页面的头部&lt;head&gt;&lt;/head&gt;。（一定要确保路径的正确）<br />&lt;!--[if lt IE 7]&gt;<br />&lt;script type=&quot;text/javascript&quot; src=&quot;unitpngfix.js&quot;&gt;&lt;/script&gt;<br />&lt;![endif]--&gt;<br />&nbsp;2）、添加clear.gif到你的images 文件夹中。在js文件中，修改&rdquo;var clear=&rdquo;images/clear.gif&rdquo; 路径，为你存放clear.gif的文件路径。<br />3）、你的整个项目的png图片都实现了透明效果。的确非常简单吧？就2个步骤，就实现了整个站点所有png的透明效果。<br /><strong>文件下载：</strong><a target="_blank" href="http://www.ug-frog.com/upload/2009/12/unitpngfix.zip">unitpngfix.zip</a></p><p>&nbsp;</p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/107.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=107</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=107&amp;key=fe34e40d</trackback:ping></item><item><title>制作网页时编写CSS代码的25个小技巧</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/104.html</link><pubDate>Thu, 03 Dec 2009 17:01:21 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/104.html</guid><description><![CDATA[<p>1、ul标签在Mozilla中默认是有padding值的，而在IE中只有margin有值。<br />2、同一个的class选择符可以在一个文档中重复出现，而id选择符却只能出现一次;对一个标签同时使用class和id进行<font color="#333333">CSS</font>定义，如果定义有重复，id选择符做的定义有效，是因为ID的权值要比CLASS大。<br />3、一个兼容性调整(IE和Mozilla)的笨办法：初学可能会碰到这样一个情况：同样一个标签的属性在IE设置成A显示是正常的，而在Mozilla里必须要设成B才能正常显示，或者两个倒过来。<br />　　临时解决方法：选择符{属性名:B !important;属性名:A}<br />4、如果一组要嵌套的标签之间需要些间距的话，那就留给位于里面的标签的margin属性吧，而不要去定义位于外面的标签的padding<br />5、li标签前面的图标推荐使用background-image，而不是list-style-image。<br />6、IE分不清继承关系和父子关系的差别，全部都是继承关系。<br />7、在给你的标签疯狂加选择符的时候，别忘了在CSS里给选择符加上注释。 等你以后修改你的CSS的时候就知道为什么要这么做了。<br />8、如果你给一个标签设置了一个深色调的背景图片和亮色调的文字效果。建议这个时候给你的标签再设置一个深色调的背景颜色。<br />9、定义链接的四种状态要注意先后顺序: Link Visited Hover Active<br />10、与内容无关的图片请使用background<br />11、定义颜色可以缩写#8899FF=#89F<br />12、table在某些方面比其它标签表现的要好的多。请在需要列对齐的地方用它。<br />13、&lt;script&gt;没有language这个属性，应该写成这样:<br />以下是引用片段：<br />&lt;script type=&rdquo;text/javascript&rdquo;&gt;&nbsp;<br />14、标题是标题，标题的文字是标题的文字。有时候标题不一定需要显示文字，所以 以下是引用片段：<br />&lt;h1&gt;标题内容&lt;/h1&gt; 改成 &lt;h1&gt;&lt;span&gt;标题内容&lt;/span&gt;&lt;/h1&gt;&nbsp;<br />15、完美的单象素外框线表格（在IE5、IE6、IE7及FF1.0.4以上中均可通过测试） 以下是引用片段：<br />table{border-collapse:collapse;} <br />td{border:#000 solid 1px;}&nbsp;<br />16、margin取负值可以在标签使用绝对定位的时候起到相对定位的作用，在页面居中显示时，使用绝对定位的层不适合使用left:XXpx这个属性。把这个层放到一个要相对定位的标签旁，然后使用margin的负值是个好方法。&nbsp;<br />17、绝对定位时使用margin值定位可以达到相对于本身所在位置的定，这与top，left等属性相对与窗口边缘的定位不同。绝对定位的优势在于可以让其它元素忽略它的存在。<br />18、如果文字过长,则将过长的部分变成省略号显示：IE5,FF无效，但可以隐藏，IE6有效 以下是引用片段：<br />&lt;DIV STYLE=&rdquo;width:120px;height:50px;border:1px solid blue;overflow:hidden;text-overflow:ellipsis&rdquo;&gt; <br />&lt;NOBR&gt;就是比如有一行文字，很长，表格内一行显示不下.&lt;/NOBR&gt;&nbsp;<br />19、在IE中可能由于注释带来的文字重复问题时可以把注释改为：<br />以下是引用片段：<br />&lt;!&ndash;[if !IE]&gt;Put your commentary in here&hellip;&lt;![endif]&ndash;&gt;&nbsp;<br />20、如何用CSS调用外部字体&nbsp;&nbsp; 以下是引用片段：<br />语法： <br />@font-face{font-family:name;src:url(url);sRules}取值： <br />name：字体名称。任何可能的 font-family 属性的值 <br />url(url)：使用绝对或相对 url 地址指定OpenType字体文件 <br />sRules：样式表定义&nbsp;<br />21、如何让一个表单中的文本框中的文字垂直居中？<br />如果用行高与高度的组在FF中是没有效果的，办法就是定义上下补白就可以实现想想的效果了。<br />22、定义A标签要注意的小问题：<br />当我们定义a{color:red;}时，它代表了A的四种状态的样式，如果此时要定义一个鼠标放上的状态只要定义a:hover就可以了，其它三种状态就是A中所定义的样式。<br />只定义了一个a:link时，一定要记得把其它三种状态定义出来！<br />23、并不是所有样式都要简写：<br />当样式表前定义了如p{padding:1px 2px 3px 4px}时，在后续工程中又增加了一个样式上补白5px，下补白6px。我们并不一定要写成p.style1{padding:5px 6px 3px 4px}。可以写成p.style1{padding-top:5px;padding-right:6px;},你可能会感觉这样写还不如原来那样好，但你想没想过，你的那种写法重复定义了样式，另外你可以不必去找原来的下补白与左补白的值是多少！如果以后前一个样式P变了话，你定义的p.style1的样式也要变。&nbsp;&nbsp;<br />24、网站越大，CSS样式越多，开始做前，请做好充分的准备和策划，包括命名规则。页面区块划分，内部样式分类等。&nbsp;<br />25、几个常用到的CSS样式：<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1）中文字两端对齐：text-align:justify;text-justify:inter-ideograph;<br />　&nbsp; 2）固定宽度汉字截断：overflow:hidden;text-overflow:ellipsis;white-space:nowrap;(不过只能处理文字在一行上的截断，不能处理多行。)（IE5以上）FF不能，它只隐藏。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 3）固定宽度汉字（词）折行：table-layout:fixed; word-break:break-all;（IE5以上）FF不能。<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4）&lt;acronym title=&rdquo;输入要提示的文字&rdquo; style=&rdquo;cursor:help;&rdquo;&gt;文字&lt;/acronym&gt;用鼠标放在前面的文字上看效果。这个效果在国外的很多网站都可以看到，而国内的少又少。&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5）图片设为半透明：.halfalpha { background-color:#000000;filter:Alpha(Opacity=50)}在IE6及IE5测试通过，FF未通过，这是因为这个样式是IE私有的东西；<br />　&nbsp; 6）<font color="#333333">FLASH</font>透明：选中swf,打开原代码窗口，在&lt;/object&gt;前输入&lt;param name=&rdquo;wmode&rdquo; value=&rdquo;transparent&rdquo;&gt; 以上是针对IE的代码。<br />针对FIREFOX 给&lt;embed&gt; 标签也增加类似参数wmode=&rdquo;transparent&rdquo;&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 7）在做网页时常用到把鼠标放在图片上会出现图片变亮的效果，可以用图片替换的技巧，也可以用如下的滤镜：<br />以下是引用片段：<br />.pictures img { <br />filter: alpha(opacity=45); } <br />.pictures a:hover img { <br />filter: alpha(opacity=90); }</p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/104.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=104</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=104&amp;key=4ccae027</trackback:ping></item><item><title>IE与Firefox的CSS兼容大全及省略号应用（之二）</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/59.html</link><pubDate>Sun, 31 May 2009 12:54:49 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/59.html</guid><description><![CDATA[<p>CSS对浏览器器的兼容性具有很高的价值，通常情况下IE和Firefox存在很大的解析差异，这里介绍一下兼容要点。</p><p>　　常见兼容问题：</p><p>　　1.DOCTYPE 影响 CSS 处理</p><p>　　2.FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行</p><p>　　3.FF: body 设置 text-align 时, div 需要设置 margin: auto(主要是 margin-left,margin-right) 方可居中</p><p>　　4.FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个 height 和 width</p><p>　　5.FF: 支持 !important, IE 则忽略, 可用 !important 为 FF 特别设置样式</p><p>　　6.div 的垂直居中问题: vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字，就垂直居中了缺点是要控制内容不要换行</p><p>　　7.cursor: pointer 可以同时在 IE FF 中显示游标手指状， hand 仅 IE 可以</p><p>　　8.FF: 链接加边框和背景色，需设置 display: block, 同时设置 float: left 保证不换行。参照 menubar, 给 a 和 menubar 设置高度是为了避免底边显示错位, 若不设 height, 可以在 menubar 中插入一个空格。</p><p>　　9.在mozilla firefox和IE中的BOX模型解释不一致导致相差2px解决方法：</p><p>div{margin:30px!important;margin:28px;}</p><p>　　注意这两个margin的顺序一定不能写反，据阿捷的说法!important这个属性IE不能识别，但别的浏览器可以识别。所以在IE下其实解释成这样：</p><p>div{maring:30px;margin:28px}</p><p>　　重复定义的话按照最后一个来执行，所以不可以只写margin:XXpx!important;</p><p>　　10.IE5 和IE6的BOX解释不一致</p><p>　　IE5下</p><p>div{width:300px;margin:0 10px 0 10px;}</p><p>　　div的宽度会被解释为300px-10px(右填充)-10px(左填充)最终div的宽度为280px，而在IE6和其他浏览器上宽度则是以300px+10px(右填充)+10px(左填充)=320px来计算的。这时我们可以做如下修改</p><p>div{width:300px!important;width /**/:340px;margin:0 10px 0 10px}</p><p>　　关于这个/**/是什么我也不太明白，只知道IE5和firefox都支持但IE6不支持，如果有人理解的话，请告诉我一声，谢了！：）</p><p>　　11.ul标签在Mozilla中默认是有padding值的,而在IE中只有margin有值所以先定义</p><p>ul{margin:0;padding:0;}</p><p>　　就能解决大部分问题</p><p>　　注意事项：</p><p>　　1、float的div一定要闭合。</p><p>　　例如：(其中floatA、floatB的属性已经设置为float:left;)</p><p>&lt;#div id=&quot;floatA&quot; &gt;&lt;/#div&gt;</p><p>&lt;#div id=&quot;floatB&quot; &gt;&lt;/#div&gt;</p><p>&lt;#div id=&quot;NOTfloatC&quot; &gt;&lt;/#div&gt;</p><p>　　这里的NOTfloatC并不希望继续平移，而是希望往下排。</p><p>　　这段代码在IE中毫无问题，问题出在FF。原因是NOTfloatC并非float标签，必须将float标签闭合。</p><p>　　在</p><p>&lt;#div class=&quot;floatB&quot;&gt;&lt;/#div&gt;</p><p>&lt;#div class=&quot;NOTfloatC&quot;&gt;&lt;/#div&gt;</p><p>　　之间加上</p><p>&lt;#div class=&quot;clear&quot;&gt;&lt;/#div&gt;</p><p>　　这个div一定要注意声明位置，一定要放在最恰当的地方，而且必须与两个具有float属性的div同级，之间不能存在嵌套关系，否则会产生异常。</p><p>　　并且将clear这种样式定义为为如下即可：</p><p>.clear{</p><p>clear:both;}</p><p>　　此外，为了让高度能自动适应，要在wrapper里面加上overflow:hidden;</p><p>　　当包含float的box的时候，高度自动适应在IE下无效，这时候应该触发IE的layout私有属性(万恶的IE啊！)用zoom:1;可以做到，这样就达到了兼容。</p><p>　　例如某一个wrapper如下定义：</p><p>.colwrapper{</p><p>overflow:hidden;</p><p>zoom:1;</p><p>margin:5px auto;}</p><p><br />　　2、margin加倍的问题。</p><p>　　设置为float的div在ie下设置的margin会加倍。这是一个ie6都存在的bug。</p><p>　　解决方案是在这个div里面加上display:inline;</p><p>例如：</p><p>&lt;#div id=&quot;imfloat&quot;&gt;&lt;/#div&gt;</p><p><br />　　相应的css为</p><p>#IamFloat{</p><p>float:left;</p><p>margin:5px;/*IE下理解为10px*/</p><p>display:inline;/*IE下再理解为5px*/}</p><p><br />　　3、关于容器的包涵关系</p><p>　　很多时候，尤其是容器内有平行布局，例如两、三个float的div时，宽度很容易出现问题。在IE中，外层的宽度会被内层更宽的div挤破。一定要用Photoshop或者Firework量取像素级的精度。</p><p>　　4、关于高度的问题</p><p>　　如果是动态地添加内容，高度最好不要定义。浏览器可以自动伸缩，然而如果是静态的内容，高度最好定好。（似乎有时候不会自动往下撑开，不知道具体怎么回事）</p><p>　　5、最狠的手段 - !important;</p><p>　　如果实在没有办法解决一些细节问题,可以用这个方法.FF对于&quot;!important&quot;会自动优先解析,然而IE则会忽略.如下</p><p>.tabd1{</p><p>background:url(/res/images/up/tab1.gif) no-repeat 0px 0px !important; /*Style for FF*/</p><p>background:url(/res/images/up/tab1.gif) no-repeat 1px 0px; /* Style for IE */}</p><p>　　值得注意的是，一定要将xxxx !important 这句放置在另一句之上，上面已经提过</p><p>&nbsp;</p><p>Firefox、IE对CSS的兼容性整理</p><p>1、firefox和IE对某些css样式的认定有不少区别，包括：</p><p>ul和ol的默认padding值是不一样的，在Firefox中，padding-left默认值为40px左右，而IE中为0，一般设置ul{margin:0;padding:0;}就能解决大部分问题。 <br />并列排列的多个元素（图片或者链接）的代码中的空格和回车会造成元素之间的间隙，而在firefox中和IE中显示是不一样的，IE显示空格（约8px）、firefox显示空格（约4px）。 <br />对不规范代码的兼容情况不同，IE中漏掉的关闭符号对显示不造成影响，而firefox中就会形成错乱的布局。<br />firefox对于宽高尺寸的严格解析会造成与设置不匹配（超出）的图片或表格将原设置div撑大。 <br />未定义id的div，在IE中会与div属性中的其他设置有关，而在firefox中的位置会于div在文件中位置有关，紧随前一个div出现。<br />设置为float的div在ie下设置的margin会加倍的，特别是margin-left，这是ie6的一个bug。解决的方法是在这个div里面加上display:inline; <br />如果是动态地添加内容，高度最好不要定义。浏览器可以自动伸缩，然而如果是静态的内容，高度最好定好。（似乎有时候不会自动往下撑开，不知道具体怎么回事） <br />FF: div 设置 margin-left, margin-right 为 auto 时已经居中, IE 不行。IE里设置text-align:center，就居中了，但在FF中不行。所以一般两个都要设置。 <br />FF: 设置 padding 后, div 会增加 height 和 width, 但 IE 不会, 故需要用 !important 多设一个height 和 width <br />FF对于&quot;!important&quot;会自动优先解析,然而IE则会忽略.如下<br />.tabd{<br />background:url(/res/images/up/tab1.gif) no-repeat 0px 0px !important; /*Style for FF*/<br />background:url(/res/images/up/tab1.gif) no-repeat 1px 0px; /* Style for IE */<br />}</p><p>FF: 链接加边框和背景色，需设置 display: block, 同时设置 float: left 保证不换行。</p><p>2、针对firefox ie6 ie7的css样式 <br />现在大部分都是用!important来hack，对于ie6和firefox测试可以正常显示，<br />但是ie7对!important可以正确解释，会导致页面没按要求显示！找到一个针<br />对IE7不错的hack方式就是使用&ldquo;*+html&rdquo;，现在用IE7浏览一下，应该没有问题了。 <br />现在写一个CSS可以这样：</p><p>#1 { color: #333; } /* Moz */ <br />* html #1 { color: #666; } /* IE6 */ <br />*+html #1 { color: #999; } /* IE7 */ <br />那么在firefox下字体颜色显示为#333，IE6下字体颜色显示为#666，IE7下字体颜色显示为#999。</p><p>3、firefox下多层嵌套时内层设置了浮动外层设置背景时背景不显示<br />这主要是内层设置浮动后外层高度在firefox下变为0，所以应该在外层与内层间再嵌一层，设置浮动和宽<br />度，然后给这个层设置背景（听说还有其他方法，感觉还是这方法好使）</p><p>4、属性选择器(这个不能算是兼容,是隐藏css的一个bug<br />p[id]{}div[id]{}<br />这个对于IE6.0和IE6.0以下的版本都隐藏,FF和OPera作用<br />属性选择器和子选择器还是有区别的,子选择器的范围从形式来说缩小了,属性选择器的范围比较大,如p[id]中,所有p标签中有id的都是同样式的.</p><p>5、嵌套DIV:父DIV的高度不能根据子DIV自动变化的解决方案</p><p><br />&lt;div id=&quot;parent&quot;&gt;<br />&lt;div id=&quot;content&quot;&gt; &lt;/div&gt;<br />&lt;/div&gt;</p><p>&nbsp;</p><p>当Content内容多时，即使parent设置了高度100%或auto,在不同浏览器下还是不能完好的自动伸展。 解决方案</p><p>&nbsp;</p><p>&lt;div id=&quot;parent&quot;&gt;<br />&lt;div id=&quot;content&quot;&gt;&lt;/div&gt;<br />&lt;div style=&quot;font: 0px/0px sans-serif;clear: both;display: block&quot;&gt; &lt;/div&gt;<br />&lt;/div&gt;</p><p>&nbsp;</p><p>在层的最下方产生一个高度为1的空格，可解除这个问题</p><p>-------------我增加的-------------------</p><p>编写代码时：对齐时，要将对右的要写在前面。比如：<br />&lt;style&gt;</p><p>body{text-align:center;width:100%;}<br />#center{margin:0 auto;width:800px;overflow:hidden;}/*这里是居中，超出部分隐藏*/<br />.right{float:right;}/*右对齐*/<br />.left{float:left;}/*左对齐*/<br />.left2{float:inherit;}/*采用继承的方法*/<br />#footer{clear:both;}/*清除浮动，防止与顶部层重叠*/<br />&lt;/style&gt;<br />&lt;div id=&quot;center&quot;&gt;<br />&lt;div class=&quot;right&quot;&gt;&lt;/div&gt;<br />&lt;div class=&quot;left&quot;&gt;&lt;/div&gt;<br />&lt;div class=&quot;left2&quot;&gt;&lt;/div&gt;<br />&lt;/div&gt;<br />&lt;div id=&quot;footer&quot;&gt;&lt;/div&gt;</p><p>－－－－－－－－－用伪类加省略号样式－－－－－－－－－－－</p><p>比如：</p><p>&lt;style&gt;</p><p>.s_body li{list-style-type:none;}<br />.s_body li a{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:300px;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overflow:hidden;&nbsp;&nbsp;&nbsp; <br />text-overflow:ellipsis; <br />whitewhite-space:nowrap; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:auto;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; line-height:150%;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; margin-left:15px;&nbsp;&nbsp;&nbsp; <br />&nbsp;&nbsp;&nbsp;&nbsp; }<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .s_body li a:after{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; content: &quot;...&quot;;&nbsp;&nbsp; }<br />&lt;/style&gt;<br />&lt;ul class=&quot;s_body&quot;&gt;<br />&lt;li&gt;&lt;a href=&quot;#&quot;&gt;内容信息&lt;/a&gt;&lt;/li&gt;<br />&lt;/ul&gt;</p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/59.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=59</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=59&amp;key=ab603510</trackback:ping></item><item><title>为页面添加正确的doctype声明-W3C标准</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/61.html</link><pubDate>Wed, 22 Apr 2009 14:07:20 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/61.html</guid><description><![CDATA[<p style="text-indent: 2em">用dw设计网页时,代码最前面总要出现一个下面的东东，</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd html 4.01 transitional/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/html4/loose.dtd"><font color="#56839a">http://www.w3.org/tr/html4/loose.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">这个是dw自动在网页文件页增加了dtd信息（DOCTYPE声明），可以删。删除后，浏览器会使用的默认dtd。</p><p style="text-indent: 2em">很多设计师和开发者都不知道什么是DOCTYPE，DOCTYPE有什么用。DOCTYPE是document type的简写。主要用来说明你用的XHTML或者HTML是什么版本。浏览器根据你DOCTYPE定义的DTD(文档类型定义)来解释页面代码。所以，如果你不注意设置了错误的DOCTYPE，结果可能会令页面出现错误。</p><p style="text-indent: 2em">doctype的作用</p><p style="text-indent: 2em">doctype声明指出阅读程序应该用什么规则集来解释文档中的标记。在web文档的情况下，&ldquo;阅读程序&rdquo;通常是浏览器或者校验器这样的一个程序，&ldquo;规则&rdquo;则是w3c所发布的一个文档类型定义（dtd）中包含的规则。</p><p style="text-indent: 2em">每个dtd都包括一系列标记、attributes和properties，它们用于标记web文档的内容；此外还包括一些规则，它们规定了哪些标记能出现在其他哪些标记中。每个web建议标准（比如html 4 frameset和xhtml 1.0 transitional）都有自己的dtd。</p><p style="text-indent: 2em">假如文档中的标记不遵循doctype声明所指定的dtd，这个文档除了不能通过代码校验之外，还有可能无法在浏览器中正确显示。对于标记不一致的问题，浏览器相较于校验器来说更宽容。但是，不正确的doctype声明经常导致网页不正确显示，或者导致它们根本不能显示。</p><p style="text-indent: 2em">选择正确的doctype</p><p style="text-indent: 2em">为了获得正确的doctype声明，关键就是让dtd与文档所遵循的标准对应。例如，假定文档遵循的是xhtml 1.0 strict标准，文档的doctype声明就应该引用相应的dtd。另一方面，如果doctype声明指定的是xhtml dtd，但文档包含的是旧式风格的html标记，就是不恰当的；类似地，如果doctype声明指定的是html dtd，但文档包含的是xhtml 1.0 strict标记，同样是不恰当的。</p><p style="text-indent: 2em">有的时候，也可以根本不使用一个doctype声明。如果没有指定有效的doctype声明，大多数浏览器都会使用一个内建的默认dtd。在这种情况下，浏览器会用内建的dtd来试着显示你所指定的标记。对于一些临时性的、匆忙拼凑的文档（这种文档有许多），你确实可以考虑省略doctype声明，并接受浏览器的默认显示。</p><p style="text-indent: 2em">然而，由于大多数web文档都需要遵循由w3c发布的某个国际公认的web标准，所以那些文档通常都要包含以下标准doctype声明之一：</p><p style="text-indent: 2em">html 2（数字2代表版本号）：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/ietf/dtd html 2.0/en&quot;&gt;</p><p style="text-indent: 2em">html 3.2：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd html 3.2 final/en&quot;&gt;</p><p style="text-indent: 2em">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</p><p style="text-indent: 2em">html 4.01 strict：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd html 4.01/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/html4/strict.dtd"><font color="#56839a">http://www.w3.org/tr/html4/strict.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">html 4.01 transitional：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd html 4.01 transitional/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/html4/loose.dtd"><font color="#56839a">http://www.w3.org/tr/html4/loose.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">html 4.01 frameset：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd html 4.01 frameset/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/html4/frameset.dtd"><font color="#56839a">http://www.w3.org/tr/html4/frameset.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</p><p style="text-indent: 2em">xhtml 1.0 strict：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd xhtml 1.0 strict/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"><font color="#56839a">http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">xhtml 1.0 transitional：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd xhtml 1.0 transitional/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"><font color="#56839a">http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">xhtml 1.0 frameset：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd xhtml 1.0 frameset/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd"><font color="#56839a">http://www.w3.org/tr/xhtml1/dtd/xhtml1-frameset.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;</p><p style="text-indent: 2em">xhtml 1.1：</p><p style="text-indent: 2em">&lt;!doctype html public &quot;-/w3c/dtd xhtml 1.1/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd"><font color="#56839a">http://www.w3.org/tr/xhtml11/dtd/xhtml11.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">xhtml 1.1 plus mathml plus svg：</p><p style="text-indent: 2em">&lt;!doctype html public</p><p style="text-indent: 2em">&quot;-/w3c/dtd xhtml 1.1 plus mathml 2.0 plus svg 1.1/en&quot;</p><p style="text-indent: 2em">&quot;<a href="http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd"><font color="#56839a">http://www.w3.org/2002/04/xhtml-math-svg/xhtml-math-svg.dtd</font></a>&quot;&gt;</p><p style="text-indent: 2em">（说明一下，XHTML 1就是HTML 4.01的XML化，是一种不向前兼容的格式，未来的XHTML 2也不会向后兼容。）</p><p style="text-indent: 2em">大家可以仔细看看上边三句代码的不同之处，他们代表了三种不同的XHTML文档类型。</p><p style="text-indent: 2em">Transitional类型：是指一种过渡类型，使用这种类型浏览器对XHTML的解析比较宽松，允许使用HTML4.01中的标签，但必须符合XHTML的语法。这种是现在通用的方法，用dreamweaver创建网页时默认就是这种类型。</p><p style="text-indent: 2em">Strict类型：严格类型，使用时浏览器将相对严格，不允许使用任何表现形式的标识和属性，如在元素中直接使用bgcolor背景色属性等。</p><p style="text-indent: 2em">Frameset类型：框架页类型，如果网页使用了框架结构，就有必要使用这样的文档声明。</p><p style="text-indent: 2em">那么应该选择哪个？我相信很多人，尤其是接触了网页标准（Web Standards）的人，会毫不犹豫地选择XHTML 1.0 Transitional。这是一股趋势，这是一股潮流，暗示着，嘿嘿，伙计，看见没，我们的网站使用最新技术构建了&hellip;&hellip;</p><p style="text-indent: 2em">这里有一个很有趣的统计，使用XHTML 1.0 Strict和Transitional的占绝大多数，且对半开。那么，这个世界就那么美好了吗？</p><p style="text-indent: 2em">我们先来看看W3C的建议，总结出下表：</p><p style="text-indent: 2em"><table cellspacing="0" cellpadding="5" border="1">    <tbody>        <tr>            <td align="center" bgcolor="#dedede" colspan="5">Media types summary for serving XHTML documents</td>        </tr>        <tr bgcolor="#999999">            <td>Media Type</td>            <td>text/html</td>            <td>application/xhtml+xml</td>            <td>application/xml</td>            <td>text/xml</td>        </tr>        <tr bgcolor="#efefef">            <td>HTML 4</td>            <td>SHOULD</td>            <td>MUST NOT</td>            <td>MUST NOT</td>            <td>MUST NOT</td>        </tr>        <tr bgcolor="#efefef">            <td>XHTML 1.0 (HTML Compatible)</td>            <td>MAY</td>            <td>SHOULD</td>            <td>MAY</td>            <td>MAY</td>        </tr>        <tr bgcolor="#efefef">            <td>XHTML 1.0 (other)</td>            <td>SHOULD NOT</td>            <td>SHOULD</td>            <td>MAY</td>            <td>MAY</td>        </tr>        <tr bgcolor="#efefef">            <td>XHTML Basic</td>            <td>SHOULD NOT</td>            <td>SHOULD</td>            <td>MAY</td>            <td>MAY</td>        </tr>        <tr bgcolor="#efefef">            <td>XHTML 1.1</td>            <td>SHOULD NOT</td>            <td>SHOULD</td>            <td>MAY</td>            <td>MAY</td>        </tr>        <tr bgcolor="#efefef">            <td>XHTML + MathML</td>            <td>SHOULD NOT</td>            <td>SHOULD</td>            <td>MAY</td>            <td>MAY</td>        </tr>    </tbody></table></p><p style="text-indent: 2em">前面说到，XHTML 1实际上是HTML 4.01的XML化。即时看起来，写起来，用起来都很像，但这是两种不同的规范。XHTML的MIME-TYPE应该是application/xhtml+xml，而HTML应该是text/html。两者有何不同，简单的说，application/xhtml+xml属于XML，所以行为遵循一切XML规范，最重要的是良构（Well-Formed）这一点。</p><p style="text-indent: 2em">除了XHTML 1.0 Transitional和Frameset，我们可以看到，XHTML 1.0 Strict和1.1都SHOULD使用application/xhtml+xml。然而，我们可以看到，前面提到的那个统计，并没有多少个网站使用application/xhtml+xml，可以说他们是扯虎皮做大旗而已，它们非良构的内容依然可以通过支持application/xhtml+xml的浏览器（如Firefox, Opera）来展现，因为它们本质上还是text/html，而text/html并不需要良构。</p><p style="text-indent: 2em">可以看到，XHTML 1.0 Transitional的地位很暧昧，它的Transitional 使得其MAY text/html，SHOULD application/xhtml+xml。也就是说，怎么处理，实际上交由客户端（client side）来决定。在我所见到的桌面浏览器中，它们都毫不犹豫地选择text/html，这跟它们一贯的宽容风格保持一致。</p><p style="text-indent: 2em">但是很不幸的是，就有这么一个浏览器，Opera for mobile，从8.0开始，凡是声明了XHTML的Doctype，它都一律以application/xhtml+xml来处理。所以，你那不良构的网站，只好在它上面显示出错信息。</p><p style="text-indent: 2em">所以，推荐使用XHTML 1.0 Transitional，是鼓励你从HTML向XHTML转化，且保持过渡性。但过渡性并不代表你就可以不重视XML的良构。</p><p style="text-indent: 2em">实际上，我们并没有能够发现XHTML 1.0 Transitional跟HTML 4.01 Strict有何不同，除了一个target，一些过时的表现标签和属性（attribute）。只要我们在HTML中不写作那些XHTML中不存在的标签和属性，我们实际上就是在写XHTML 1.0 Transitional，对我们并没有什么影响，什么XML的优越性完全不能在XHTML 1.0 Transitional中体现出来，所以与其让Opera for mobile（或许还有其他变数）不能工作，还不如选择HTML 4.01 Strict。当然，如果您能保证你的XHTML 1.0 Transitional 百分百良构，使用它是一个更佳的选择。然后，请你告诉我，世界上，使用了XHTML 1.0 Transitional的网站，非首页的其他页面能有多少个是能够通过验证的？</p><p style="text-indent: 2em">结论是，如果你没有勇气保证整个站点百分百良构，请使用HTML 4.01 Strict；如果您有勇气保证整个站点百分百良构，您可以直接选择XHTML 1.1。</p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/61.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=61</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=61&amp;key=2a9e3d61</trackback:ping></item><item><title>最全的CSS浏览器兼容问题（之一）</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/32.html</link><pubDate>Tue, 16 Dec 2008 21:57:46 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/32.html</guid><description><![CDATA[<p><font face="Arial">　　CSS对浏览器的兼容性有时让人很头疼,或许当你了解当中的技巧跟原理,就会觉得也不是难事,从网上收集了IE7,6与Fireofx的兼容性处理方法并整理了一下.对于web2.0的过度,请尽量用xhtml格式写代码,而且DOCTYPE 影响 CSS 处理,作为W3C的标准,一定要加 DOCTYPE声名.&nbsp; </font></p><p><strong><font face="Arial">　　CSS技巧</font></strong></p><p><font face="Arial">　　1.div的垂直居中问题 vertical-align:middle; 将行距增加到和整个DIV一样高 line-height:200px; 然后插入文字，就垂直居中了。缺点是要控制内容不要换行&nbsp; </font></p><p><font face="Arial">　　2. margin加倍的问题&nbsp;&nbsp;&nbsp;&nbsp; 设置为float的div在ie下设置的margin会加倍。这是一个ie6都存在的bug。解决方案是在这个div里面加上display:inline;&nbsp;&nbsp;&nbsp; 例如：&nbsp;&nbsp;&nbsp; &lt;#div id=&rdquo;imfloat&rdquo;&gt;&nbsp;&nbsp;&nbsp; 相应的css为&nbsp;&nbsp;&nbsp; #IamFloat{&nbsp;&nbsp;&nbsp; float:left;&nbsp;&nbsp;&nbsp; margin:5px;/*IE下理解为10px*/&nbsp;&nbsp;&nbsp; display:inline;/*IE下再理解为5px*/}&nbsp; </font></p><p><font face="Arial">　　3.浮动ie产生的双倍距离&nbsp;&nbsp;&nbsp;&nbsp; #box{ float:left; width:100px; margin:0 0 0 100px; //这种情况之下IE会产生200px的距离 display:inline; //使浮动忽略}&nbsp;&nbsp;&nbsp; 这里细说一下block与inline两个元素：block元素的特点是,总是在新行上开始,高度,宽度,行高,边距都可以控制(块元素);Inline元素的特点是,和其他元素在同一行上,不可控制(内嵌元素);&nbsp;&nbsp;&nbsp; #box{ display:block; //可以为内嵌元素模拟为块元素 display:inline; //实现同一行排列的效果 diplay:table;&nbsp;&nbsp; </font></p><p><font face="Arial">　　4 IE与宽度和高度的问题 IE 不认得min-这个定义，但实际上它把正常的width和height当作有min的情况来使。这样问题就大了，如果只用宽度和高度，正常的浏览器里这两个值就不会变，如果只用min-width和min-height的话，IE下面根本等于没有设置宽度和高度。&nbsp;&nbsp;&nbsp; 比如要设置背景图片，这个宽度是比较重要的。要解决这个问题，可以这样：&nbsp;&nbsp;&nbsp; #box{ width: 80px; height: 35px;}html&gt;body #box{ width: auto; height: auto; min-width: 80px; min-height: 35px;}&nbsp;&nbsp; </font></p><p><font face="Arial">　　5.页面的最小宽度&nbsp;&nbsp;&nbsp;&nbsp; min -width是个非常方便的CSS命令，它可以指定元素最小也不能小于某个宽度，这样就能保证排版一直正确。但IE不认得这个，而它实际上把width当做最小宽度来使。为了让这一命令在IE上也能用，可以把一个&lt;div&gt; 放到 &lt;body&gt; 标签下，然后为div指定一个类, 然后CSS这样设计：&nbsp;&nbsp;&nbsp; #container{ min-width: 600px; width:expression(document.body.clientWidth &lt; 600? &quot;600px&quot;: &quot;auto&quot; );}&nbsp;&nbsp;&nbsp; 第一个min-width是正常的；但第2行的width使用了Javascript，这只有IE才认得，这也会让你的HTML文档不太正规。它实际上通过Javascript的判断来实现最小宽度。</font></p><p><font face="Arial">　　6.DIV浮动IE文本产生3象素的bug&nbsp;&nbsp;&nbsp; 左边对象浮动，右边采用外补丁的左边距来定位，右边对象内的文本会离左边有3px的间距.&nbsp;&nbsp;&nbsp; #box{ float:left; width:800px;}&nbsp;&nbsp; #left{ float:left; width:50%;}&nbsp;&nbsp; #right{ width:50%;}&nbsp;&nbsp; *html #left{ margin-right:-3px; //这句是关键}&nbsp;&nbsp;&nbsp; &lt;div id=&quot;box&quot;&gt;&nbsp;&nbsp; &lt;div id=&quot;left&quot;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;div id=&quot;right&quot;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;/div&gt;&nbsp; </font></p><p><font face="Arial">　　7.IE捉迷藏的问题&nbsp;&nbsp;&nbsp; 当div应用复杂的时候每个栏中又有一些链接，DIV等这个时候容易发生捉迷藏的问题。&nbsp;&nbsp;&nbsp; 有些内容显示不出来，当鼠标选择这个区域是发现内容确实在页面。 解决办法：对#layout使用line-height属性 或者给#layout使用固定高和宽。页面结构尽量简单。&nbsp; </font></p><p><font face="Arial">　　8.float的div闭合;清除浮动;自适应高度;&nbsp;&nbsp; </font></p><p><font face="Arial">　　① 例如：&lt;#div id=&rdquo;floatA&rdquo; &gt;&lt;#div id=&rdquo;floatB&rdquo; &gt;&lt;#div id=&rdquo; NOTfloatC&rdquo; &gt;这里的NOTfloatC并不希望继续平移，而是希望往下排。(其中floatA、floatB的属性已经设置为 float:left;)&nbsp;&nbsp; 这段代码在IE中毫无问题，问题出在FF。原因是NOTfloatC并非float标签，必须将float标签闭合。在 &lt;#div class=&rdquo;floatB&rdquo;&gt; &lt;#div class=&rdquo;NOTfloatC&rdquo;&gt;之间加上 &lt; #div class=&rdquo;clear&rdquo;&gt;这个div一定要注意位置，而且必须与两个具有float属性的div同级，之间不能存在嵌套关系，否则会产生异常。 并且将clear这种样式定义为为如下即可： .clear{ clear:both;}&nbsp;&nbsp; </font></p><p><font face="Arial">　　②作为外部 wrapper 的 div 不要定死高度,为了让高度能自动适应，要在wrapper里面加上overflow:hidden; 当包含float的 box的时候，高度自动适应在IE下无效，这时候应该触发IE的layout私有属性(万恶的IE啊！)用zoom:1;可以做到，这样就达到了兼容。&nbsp;&nbsp;&nbsp; 例如某一个wrapper如下定义：&nbsp;&nbsp;&nbsp; .colwrapper{ overflow:hidden; zoom:1; margin:5px auto;}&nbsp;&nbsp; </font></p><p><font face="Arial">　　③对于排版,我们用得最多的css描述可能就是float:left.有的时候我们需要在n栏的float div后面做一个统一的背景,譬如:&nbsp;&nbsp; &lt;div id=&rdquo;page&rdquo;&gt;&nbsp;&nbsp; &lt;div id=&rdquo;left&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;div id=&rdquo;center&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;div id=&rdquo;right&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&nbsp;&nbsp; 比如我们要将page的背景设置成蓝色,以达到所有三栏的背景颜色是蓝色的目的,但是我们会发现随着left center right的向下拉长,而 page居然保存高度不变,问题来了,原因在于page不是float属性,而我们的page由于要居中,不能设置成float,所以我们应该这样解决&nbsp;&nbsp;&nbsp; &lt;div id=&rdquo;page&rdquo;&gt;&nbsp;&nbsp; &lt;div id=&rdquo;bg&rdquo; style=&rdquo;float:left;width:100%&rdquo;&gt;&nbsp;&nbsp; &lt;div id=&rdquo;left&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;div id=&rdquo;center&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;div id=&rdquo;right&rdquo;&gt;&lt;/div&gt;&nbsp;&nbsp; &lt;/div&gt;&nbsp;&nbsp; &lt;/div&gt;&nbsp;&nbsp; 再嵌入一个float left而宽度是100%的DIV解决之&nbsp; </font></p><p><font face="Arial">　　④万能float 闭合(非常重要!)&nbsp;&nbsp;&nbsp; 关于 clear float 的原理可参见 [How To Clear Floats Without Structural Markup],将以下代码加入Global CSS 中,给需要闭合的div加上 class=&quot;clearfix&quot; 即可,屡试不爽.&nbsp;&nbsp;&nbsp; /* Clear Fix */&nbsp;&nbsp;&nbsp; .clearfix:after { content:&quot;.&quot;; display:block; height:0; clear:both; visibility:hidden; }&nbsp;&nbsp;&nbsp; .clearfix { display:inline-block; }&nbsp;&nbsp;&nbsp; /* Hide from IE Mac */&nbsp;&nbsp;&nbsp; .clearfix {display:block;}&nbsp;&nbsp;&nbsp; /* End hide from IE Mac */&nbsp;&nbsp;&nbsp; /* end of clearfix */&nbsp;&nbsp;&nbsp; 或者这样设置：.hackbox{ display:table; //将对象作为块元素级的表格显示}&nbsp; </font></p><p><font face="Arial">　　11.高度不适应&nbsp;&nbsp;&nbsp; 高度不适应是当内层对象的高度发生变化时外层高度不能自动进行调节，特别是当内层对象使用margin 或paddign 时。&nbsp;&nbsp;&nbsp; 例：&nbsp;&nbsp; #box {background-color:#eee; }&nbsp;&nbsp;&nbsp;&nbsp; #box p {margin-top: 20px;margin-bottom: 20px; text-align:center; }&nbsp;&nbsp;&nbsp;&nbsp; &lt;div id=&quot;box&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;p&gt;p对象中的内容&lt;/p&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/div&gt;&nbsp;&nbsp;&nbsp;&nbsp; 解决方法：在P对象上下各加2个空的div对象CSS代码：.1{height:0px;overflow:hidden;}或者为DIV加上border属性。</font></p><p><font face="Arial">　　12 .IE6下为什么图片下有空隙产生 解决这个BUG的方法也有很多,可以是改变html的排版,或者设置img 为display:block 或者设置vertical-align 属性为 vertical-align:top | bottom |middle |text-bottom 都可以解决.</font></p><p><font face="Arial">　　13.如何对齐文本与文本输入框 加上 vertical-align:middle; &lt;style type=&quot;text/css&quot;&gt; &lt;!-- input {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height:30px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border:1px solid red;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; vertical-align:middle; } --&gt; &lt;/style&gt;</font></p><p><font face="Arial">　　14.web标准中定义id与class有什么区别吗 一.web标准中是不容许重复ID的,比如 div id=&quot;aa&quot;&nbsp;&nbsp; 不容许重复2次,而class 定义的是类,理论上可以无限重复, 这样需要多次引用的定义便可以使用他. 二.属性的优先级问题 ID 的优先级要高于class,看上面的例子 三.方便JS等客户端脚本,如果在页面中要对某个对象进行脚本操作,那么可以给他定义一个ID,否则只能利用遍历页面元素加上指定特定属性来找到它,这是相对浪费时间资源,远远不如一个ID来得简单.</font></p><p><font face="Arial">　　15. LI中内容超过长度后以省略号显示的方法 此方法适用与IE与OP浏览器 &lt;style type=&quot;text/css&quot;&gt; &lt;!-- li {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; white-space:nowrap;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text-overflow:ellipsis;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o-text-overflow:ellipsis;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; overflow: hidden;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } --&gt; &lt;/style&gt;</font></p><p><font face="Arial">　　16.为什么web标准中IE无法设置滚动条颜色了 解决办法是将body换成html &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;</font><a target="_blank" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><font face="Arial">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</font></a><font face="Arial">&quot;&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt; &lt;style type=&quot;text/css&quot;&gt; &lt;!-- html {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-face-color:#f6f6f6;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-highlight-color:#fff;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-shadow-color:#eeeeee;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-3dlight-color:#eeeeee;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-arrow-color:#000;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-track-color:#fff;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; scrollbar-darkshadow-color:#fff;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } --&gt; &lt;/style&gt;</font></p><p><font face="Arial">　　17.为什么无法定义1px左右高度的容器 IE6下这个问题是因为默认的行高造成的,解决的方法也有很多,例如:overflow:hidden | zoom:0.08 | line-height:1px</font></p><p><font face="Arial">　　18.怎么样才能让层显示在FLASH之上呢 解决的办法是给FLASH设置透明 &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot; /&gt;</font></p><p><font face="Arial">　　19.怎样使一个层垂直居中于浏览器中 这里我们使用百分比绝对定位,与外补丁负值的方法,负值的大小为其自身宽度高度除以二 &lt;style type=&quot;text/css&quot;&gt; &lt;!-- div {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; position:absolute;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; top:50%;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lef:50%;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; margin:-100px 0 0 -100px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border:1px solid red;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } --&gt; &lt;/style&gt;&nbsp;&nbsp; </font></p><p><font face="Arial"><strong>　　FF与IE</strong>&nbsp; </font></p><p><font face="Arial">　　1. Div居中问题&nbsp;&nbsp; div设置 margin-left, margin-right 为 auto 时已经居中，IE 不行，IE需要设定body居中，首先在父级元素定义text-algin: center;这个的意思就是在父级元素内的内容居中。&nbsp;&nbsp; </font></p><p><font face="Arial">　　2.链接(a标签)的边框与背景&nbsp;&nbsp; a 链接加边框和背景色，需设置 display: block, 同时设置 float: left 保证不换行。参照 menubar, 给 a 和 menubar 设置高度是为了避免底边显示错位, 若不设 height, 可以在 menubar 中插入一个空格。</font></p><p><font face="Arial">　　3.超链接访问过后hover样式就不出现的问题 被点击访问过的超链接样式不在具有hover和active了,很多人应该都遇到过这个问题,解决方法是改变CSS属性的排列顺序: L-V-H-A Code: &lt;style type=&quot;text/css&quot;&gt; &lt;!-- a:link {} a:visited {} a:hover {} a:active {} --&gt; &lt;/style&gt;&nbsp;&nbsp;&nbsp; </font></p><p><font face="Arial">　　4. 游标手指cursor&nbsp;&nbsp;&nbsp; cursor: pointer 可以同时在 IE FF 中显示游标手指状， hand 仅 IE 可以&nbsp; </font></p><p><font face="Arial">　　5.UL的padding与margin&nbsp;&nbsp; ul标签在FF中默认是有padding值的,而在IE中只有margin默认有值,所以先定义 ul{margin:0;padding:0;}就能解决大部分问题&nbsp;&nbsp; </font></p><p><font face="Arial">　　6. FORM标签&nbsp;&nbsp; 这个标签在IE中,将会自动margin一些边距,而在FF中margin则是0,因此,如果想显示一致,所以最好在css中指定margin和 padding,针对上面两个问题,我的css中一般首先都使用这样的样式ul,form{margin:0;padding:0;}给定义死了,所以后面就不会为这个头疼了.&nbsp; </font></p><p><font face="Arial">　　7. BOX模型解释不一致问题&nbsp;&nbsp; 在FF和IE 中的BOX模型解释不一致导致相差2px解决方法：div{margin:30px!important;margin:28px;} 注意这两个 margin的顺序一定不能写反， important这个属性IE不能识别，但别的浏览器可以识别。所以在IE下其实解释成这样： div {maring:30px;margin:28px}重复定义的话按照最后一个来执行，所以不可以只写margin:xx px!important;&nbsp;&nbsp;&nbsp;&nbsp; #box{ width:600px; //for ie6.0- w\idth:500px; //for ff+ie6.0}&nbsp;&nbsp;&nbsp; #box{ width:600px!important //for ff width:600px; //for ff+ie6.0 width /**/:500px; //for ie6.0-}&nbsp; </font></p><p><font face="Arial">　　8.属性选择器(这个不能算是兼容,是隐藏css的一个bug)&nbsp;&nbsp;&nbsp; p[id]{}div[id]{}&nbsp;&nbsp;&nbsp; 这个对于IE6.0和IE6.0以下的版本都隐藏,FF和OPera作用.属性选择器和子选择器还是有区别的,子选择器的范围从形式来说缩小了,属性选择器的范围比较大,如p[id]中,所有p标签中有id的都是同样式的.&nbsp; </font></p><p><font face="Arial">　　9.最狠的手段 - !important;&nbsp;&nbsp;&nbsp; 如果实在没有办法解决一些细节问题,可以用这个方法.FF对于&rdquo;!important&rdquo;会自动优先解析,然而IE则会忽略.如下&nbsp;&nbsp; .tabd1{&nbsp;&nbsp;&nbsp; background:url(/res/images/up/tab1.gif) no-repeat 0px 0px !important; /*Style for FF*/&nbsp;&nbsp;&nbsp; background:url(/res/images/up/tab1.gif) no-repeat 1px 0px; /* Style for IE */}&nbsp;&nbsp; 值得注意的是，一定要将xxxx !important 这句放置在另一句之上，上面已经提过&nbsp;&nbsp; </font></p><p><font face="Arial">　　10.IE,FF的默认值问题&nbsp;&nbsp; 或许你一直在抱怨为什么要专门为IE和FF写不同的CSS，为什么IE这样让人头疼，然后一边写css，一边咒骂那个可恶的M$ IE.其实对于css的标准支持方面，IE并没有我们想象的那么可恶，关键在于IE和FF的默认值不一样而已，掌握了这个技巧，你会发现写出兼容FF和IE的css并不是那么困难，或许对于简单的css，你完全可以不用&rdquo;!important&rdquo;这个东西了。&nbsp;&nbsp;&nbsp; 我们都知道，浏览器在显示网页的时候，都会根据网页的 css样式表来决定如何显示，但是我们在样式表中未必会将所有的元素都进行了具体的描述，当然也没有必要那么做，所以对于那些没有描述的属性，浏览器将采用内置默认的方式来进行显示，譬如文字，如果你没有在css中指定颜色，那么浏览器将采用黑色或者系统颜色来显示，div或者其他元素的背景，如果在 css中没有被指定，浏览器则将其设置为白色或者透明，等等其他未定义的样式均如此。所以有很多东西出现FF和IE显示不一样的根本原因在于它们的默认显示不一样，而这个默认样式该如何显示我知道在w3中有没有对应的标准来进行规定，因此对于这点也就别去怪罪IE了。</font></p><p><font face="Arial">　　11.为什么FF下文本无法撑开容器的高度 标准浏览器中固定高度值的容器是不会象IE6里那样被撑开的,那我又想固定高度,又想能被撑开需要怎样设置呢？办法就是去掉height设置min-height:200px;&nbsp;&nbsp; 这里为了照顾不认识min-height的IE6 可以这样定义: { height:auto!important; height:200px; min-height:200px; }</font></p><p><font face="Arial">　　12.FireFox下如何使连续长字段自动换行 众所周知IE中直接使用 word-wrap:break-word 就可以了, FF中我们使用JS插入&amp;#10;的方法来解决 &lt;style type=&quot;text/css&quot;&gt; &lt;!-- div {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:300px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; word-wrap:break-word;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border:1px solid red; } --&gt; &lt;/style&gt; &lt;div id=&quot;ff&quot;&gt;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa&lt;/div&gt; &lt;scrīpt type=&quot;text/javascrīpt&quot;&gt; /* &lt;![CDATA[ */ function toBreakWord(el, intLen){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var ōbj=document.getElementById(el);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var strContent=obj.innerHTML;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var strTemp=&quot;&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; while(strContent.length&gt;intLen){&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strTemp+=strContent.substr(0,intLen)+&quot;&amp;#10;&quot;;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strContent=strContent.substr(intLen,strContent.length);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strTemp+=&quot;&amp;#10;&quot;+strContent;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; obj.innerHTML=strTemp; } if(document.getElementById&nbsp;&nbsp; &amp;&amp;&nbsp;&nbsp; !document.all)&nbsp;&nbsp; toBreakWord(&quot;ff&quot;, 37); /* ]]&gt; */ &lt;/scrīpt&gt;</font></p><p><font face="Arial">　　13.为什么IE6下容器的宽度和FF解释不同呢 &lt;?xml version=&quot;1.0&quot; encoding=&quot;gb2312&quot;?&gt; &lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;</font><a target="_blank" href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><font face="Arial">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</font></a><font face="Arial">&quot;&gt; &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot; /&gt; &lt;style type=&quot;text/css&quot;&gt; &lt;!-- div {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cursor:pointer;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height:200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; border:10px solid red&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } --&gt; &lt;/style&gt; &lt;div ōnclick=&quot;alert(this.offsetWidth)&quot;&gt;让FireFox与IE兼容&lt;/div&gt; 问题的差别在于容器的整体宽度有没有将边框（border）的宽度算在其内,这里IE6解释为200PX ,而FF则解释为220PX,那究竟是怎么导致的问题呢？大家把容器顶部的xml去掉就会发现原来问题出在这,顶部的申明触发了IE的qurks mode,关于qurks mode、 standards mode的相关知识,请参考:http: //www.microsoft.com/china/msdn/library/webservices/asp.net/ ASPNETusStan.mspx?mfr=true</font></p><p><font face="Arial">　　IE6,IE7,FF&nbsp;&nbsp; IE7.0 出来了，对CSS的支持又有新问题。浏览器多了，网页兼容性更差了，疲于奔命的还是我们 ，为解决IE7.0的兼容问题，找来了下面这篇文章： 现在我大部分都是用!important来hack，对于ie6和firefox测试可以正常显示，但是ie7对!important可以正确解释，会导致页面没按要求显示！下面是三个浏览器的兼容性收集.&nbsp; </font></p><p><font face="Arial">　　第一种，是CSS HACK的方法&nbsp;&nbsp;&nbsp; height:20px; /*For Firefox*/&nbsp;&nbsp;&nbsp; *height:25px; /*For IE7 &amp; IE6*/&nbsp;&nbsp;&nbsp; _height:20px; /*For IE6*/&nbsp;&nbsp;&nbsp; 注意顺序。&nbsp;&nbsp;&nbsp; 这样也属于CSS HACK，不过没有上面这样简洁。&nbsp;&nbsp;&nbsp; #example { color: #333; } /* Moz */&nbsp;&nbsp;&nbsp; * html #example { color: #666; } /* IE6 */&nbsp;&nbsp;&nbsp; *+html #example { color: #999; } /* IE7 */&nbsp;&nbsp; </font></p><p><font face="Arial">　　&lt;!--其他浏览器 --&gt;&nbsp;&nbsp;&nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;css.css&quot; /&gt;&nbsp;&nbsp;&nbsp; &lt;!--[if IE 7]&gt;&nbsp;&nbsp;&nbsp; &lt;!-- 适合于IE7 --&gt;&nbsp;&nbsp;&nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ie7.css&quot; /&gt;&nbsp;&nbsp;&nbsp; &lt;![endif]--&gt;&nbsp;&nbsp;&nbsp; &lt;!--[if lte IE 6]&gt;&nbsp;&nbsp;&nbsp; &lt;!-- 适合于IE6及一下 --&gt;&nbsp;&nbsp;&nbsp; &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;ie.css&quot; /&gt;&nbsp;&nbsp;&nbsp; &lt;![endif]--&gt;&nbsp;&nbsp; </font></p><p><font face="Arial">　　第三种，css filter的办法，以下为经典从国外网站翻译过来的。.&nbsp;&nbsp;&nbsp; 新建一个css样式如下：&nbsp;&nbsp;&nbsp; #item {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; width: 200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; height: 200px;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background: red;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; 新建一个div,并使用前面定义的css的样式：&nbsp;&nbsp;&nbsp; &lt;div id=&quot;item&quot;&gt;some text here&lt;/div&gt;&nbsp;&nbsp;&nbsp;&nbsp; 在body表现这里加入lang属性,中文为zh：&nbsp;&nbsp;&nbsp; &lt;body lang=&quot;en&quot;&gt;&nbsp;&nbsp;&nbsp;&nbsp; 现在对div元素再定义一个样式：&nbsp;&nbsp;&nbsp; *:lang(en) #item{&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background:green !important;&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; 这样做是为了用!important覆盖原来的css样式,由于:lang选择器ie7.0并不支持,所以对这句话不会有任何作用,于是也达到了ie6.0下同样的效果,但是很不幸地的是,safari同样不支持此属性,所以需要加入以下css样式：&nbsp;&nbsp;&nbsp; #item:empty {&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; background: green !important&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp;&nbsp; :empty选择器为css3的规范,尽管safari并不支持此规范,但是还是会选择此元素,不管是否此元素存在,现在绿色会现在在除ie各版本以外的浏览器上。&nbsp;&nbsp;&nbsp; 对IE6和FF的兼容可以考虑以前的!important 个人比较喜欢用</font></p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/32.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=32</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=32&amp;key=60559e2e</trackback:ping></item><item><title>关于UK主题，FROG样式</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/31.html</link><pubDate>Mon, 15 Dec 2008 22:52:34 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/31.html</guid><description><![CDATA[<p><strong>绿豆蛙</strong>（丑蛙）</p><p>Z-Blog下的UG-FROG主题样式：简洁、大方、适合宽屏用户；</p><p>3列形式，右边栏目2列固定宽度，左边内容页为自适应伸缩；</p><p>解决了评论、留言及正文图片的自动伸缩问题；</p><p>加入了公益FLASH广告功能，并对代码进行了注释，更具规范性，使之结构更加合理，更适合WEB2.0发展的方向；</p><p>符合Web标准，并全面通过Firefox3，IE7及IE6等浏览器的测试。</p><p>2008-12-14更新，根据使用反馈修正。</p><p>如有好的建议，请留言，谢谢！</p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/31.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=31</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=31&amp;key=f5c935a2</trackback:ping></item><item><title>Web标准基础教程</title><author>ug-frog@163.com (丑蛙)</author><link>http://www.ug-frog.com/blog/div-css/19.html</link><pubDate>Fri, 21 Nov 2008 02:09:15 +0800</pubDate><guid>http://www.ug-frog.com/blog/div-css/19.html</guid><description><![CDATA[<p><span style="font-size: 16px"><strong>课程列表(附上CSS参考手册.chm)；</strong><span style="color: #ff0000"><strong>可下载；</strong></span><strong>FLV视频形式；</strong><strong>共25节。</strong></span></p><p>基础理论（一） <br />基础理论（二） <br />基础理论（三） <br />1、初探CSS <br />2、CSS基本语法 <br />3、CSS文字效果 <br />4、CSS图片效果 <br />5、CSS页面背景 <br />6、CSS设置表格和表单样式 <br />7、页面和浏览器元素 <br />8、CSS制作实用菜单 <br />9、CSS滤镜的使用 <br />10、理解CSS和DIV定位 <br />11、CSS排版 <br />12、网页变幻 <br />13、CSS和javascript <br />14、CSS与XMl综合运用 <br />15、CSS与AJAX综合应用 <br />16、我的博客 <br />17、小型工作室 <br />18、公司网站 <br />19、网上购物 <br />20、旅游观光 <br />CSS设计彻底研究[上] <br />CSS设计彻底研究[下]</p><p><span class="STYLE4"><a target="_blank" href="http://www.drivehq.com/file/df.aspx/shareID5035938/fileID254774514/WEB2.0标准.rar"><img height="31" alt="" width="99" align="absMiddle" border="0" src="http://ey-114.com/images/down2.gif" /></a><br /><br /><strong><span style="font-size: 16px"><a target="_blank" href="http://www.drivehq.com/file/DF.aspx/css%e5%8f%82%e8%80%83%e6%89%8b%e5%86%8c.chm?isGallery=&amp;share=&amp;shareID=0&amp;fileID=254773878&amp;pay=&amp;sesID=lrv015z4nvqypw2gpug5nf55&amp;forcedDownload=true"><span style="color: #ff0000"><span style="font-size: 18px">CSS参考手册(下载)</span></span></a></span></strong></span></p><p><strong>本资料仅用于学习之用</strong></p>]]></description><category>DIV+CSS</category><comments>http://www.ug-frog.com/blog/div-css/19.html#comment</comments><wfw:comment>http://www.ug-frog.com/</wfw:comment><wfw:commentRss>http://www.ug-frog.com/feed.asp?cmt=19</wfw:commentRss><trackback:ping>http://www.ug-frog.com/cmd.asp?act=tb&amp;id=19&amp;key=7ac7b144</trackback:ping></item></channel></rss>
