<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[网站制作博客 - 页面]]></title>
<link>http://www.huison.cn/blog/</link>
<description><![CDATA[北京网站制作公司，主营范围企业网站建设服务为主的公司！]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog2 v2.4]]></copyright>
<webMaster><![CDATA[hoogl@126.com(HuIson)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>网站制作博客</title> 
	<url>http://www.huison.cn/blog/images/logos.gif</url> 
	<link>http://www.huison.cn/blog/</link> 
	<description>网站制作博客</description> 
</image>

			<item>
			<link>http://www.huison.cn/blog/default.asp?id=281</link>
			<title><![CDATA[列表ul li 专用样式]]></title>
			<author>hoogl@126.com(Fishthink)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Fri,28 Aug 2009 16:00:48 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=281</guid>	
		<description><![CDATA[主页级别的页面大部分的内容都是做在无序列表里面的，其庞大的使用规模，需要有完备的样式支持。<br/><br/>ul{zoom:1} 这个样式包括下面两个是zoom在ul里的应用<br/><br/>ul li{zoom:1;+margin-bottom:-4px} 针对ie下ul li 元素的margin-bottom:4px 的bug（bug出现条件：li 里有float 元素）使用了该样式的li其内可有浮左、浮右div，并且li内可兼容多行结构，这是样式ul.ll20 li无法实现的。<br/><br/>ul li{zoom:1;+margin-left:-16px} 这个样式的出现有些不得已，记得前面说过，为了避免ie6下的double margin bug，我们给所有的float元素额外加上了display;inline，这导致float属性的ul 在ie下出现意料之外的缩进问题，只能再增加这个样式来解决这一问题。<br/><br/>ul.ll20 li{line-height:20px;height:20px;+margin-bottom:-4px}<br/><br/>ul.ll23 li{line-height:23px;height:23px;+margin-bottom:-4px}<br/><br/>以上两个样式适用于固定高度的单行li，什么是单行li？指的是li中的文字无换行。<br/><br/>和height等值的line-height让 li中文字垂直居中。使用了这个样式的li其内可以有浮左、浮右div，是解决单行li兼容的比较好的方式。<br/><br/>ul.li20 li{background:url(<a href="http://img.china.alibaba.com/images/cn/home/070215/d_ico.gif" target="_blank">http://img.china.alibaba.com/images/cn/home/070215/d_ico.gif</a>) 5px 7px no-repeat;<br/><br/>padding-left:15px}<br/><br/>ul.li23 li{background:url(<a href="http://img.china.alibaba.com/images/cn/home/070215/d_ico.gif" target="_blank">http://img.china.alibaba.com/images/cn/home/070215/d_ico.gif</a>) 5px 10px no-repeat;<br/><br/>padding-left:15px}<br/><br/>这两个样式没什么好说的，分别针对li高度20px和23px的li背景样式，背景其实就是一个no repeat的方点。<br/><br/>ul.ll li{float:left;display:inline}<br/><br/>ul.lr li{float:right;display:inline}<br/><br/>想让一个个li象火车一样首位相接吗？用上面两个样式吧，让所有的li浮起来。<br/><br/>ul.ldl li{display:inline} 这个样式我不太喜欢，同样可以让li象火车一样首位相接，但是代价太大，所有的li都变成inline了，很多css样式对inline的元素无效，包括最基本的width、height、margin-top<br/><br/>ul.lbt li{border-top:1px dashed #CCC}<br/><br/>ul.lbl_1 li{border-left:1px solid #000}&nbsp;&nbsp; <br/><br/>两个给li加边框的样式，给了li 更好的分隔效果。<br/><br/>这样，ul li 专用样式部分就结束了。]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=280</link>
			<title><![CDATA[网页设计中常用的一些标准尺寸]]></title>
			<author>hoogl@126.com(Fishthink)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Thu,23 Jul 2009 23:51:29 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=280</guid>	
		<description><![CDATA[1、800*600下，网页宽度保持在778以内，就不会出现水平滚动条，高度则视版面和内容决定。<br/>2、1024*768下，网页宽度保持在1002以内，如果满框显示的话,高度是612-615之间.就不会出现水平滚动条和垂直滚动条。<br/>3、在ps里面做网页可以在800*600状态下显示全屏，页面的下方又不会出现滑动条，尺寸为740*560左右<br/>4、在PS里做的图到了网上就不一样了，颜色等等方面，因为ＷＥＢ上面只用到２５６ＷＥＢ安全色，而ＰＳ中的ＲＧＢ或者ＣＭＹＫ以及ＬＡＢ或者ＨＳＢ的色域很宽颜色范围很广，所以自然会有失色的现象.<br/>页面标准按800*600分辨率制作，实际尺寸为778*434px<br/>页面长度原则上不超过3屏，宽度不超过1屏<br/>每个标准页面为A4幅面大小，即8.5X11英寸<br/>全尺寸banner为468*60px，半尺寸banner为234*60px，小banner为88*31px<br/>另外120*90，120*60也是小图标的标准尺寸<br/>每个非首页静态页面含图片字节不超过60K，全尺寸banner不超过14K<br/>标准网页广告尺寸规格一、120*120，这种广告规格适用于产品或新闻照片展示。<br/>二、120*60，这种广告规格主要用于做LOGO使用。<br/>三、120*90，主要应用于产品演示或大型LOGO。<br/>四、125*125，这种规格适于表现照片效果的图像广告。<br/>五、234*60，这种规格适用于框架或左右形式主页的广告链接。<br/>六、392*72，主要用于有较多图片展示的广告条，用于页眉或页脚。<br/>七、468*60，应用最为广泛的广告条尺寸，用于页眉或页脚。<br/>八、88*31，主要用于网页链接，或网站小型LOGO。<br/>广告形式&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 像素大小&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;最大尺寸&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;备注<br/>BUTTON&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 120*60(必须用gif)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n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;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 40K<br/>BANNER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 468*60(尽量用gif)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 18K<br/>悬停按钮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;80*80(必须用gif)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7K<br/>流媒体&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 300*200（可做不规则形状但尺寸不能超过300*200） 30K 播放时间 小于5秒60帧(1秒/12帧)<br/>网页中的广告尺寸<br/>1.首页右上，尺寸120*60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.首页顶部通栏，尺寸468*60&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;3.首页顶部通栏，尺寸760*60<br/>4.首页中部通栏，尺寸580*60&nbsp;&nbsp;&nbsp;&nbsp;5.内页顶部通栏，尺寸468*60&nbsp;&nbsp;&nbsp;&nbsp;6.内页顶部通栏，尺寸760*60<br/>7.内页左上，尺寸150*60或300*300&nbsp;&nbsp;&nbsp;&nbsp;8.下载地址页面，尺寸560*60或468*60<br/>9.内页底部通栏，尺寸760*60&nbsp;&nbsp;&nbsp;&nbsp; 10.左漂浮，尺寸80*80或100*100<br/>11.右漂浮，尺寸80*80或100*100以上几种说法可能有点小的出入，大家可以探讨一下。<br/>IAB和EIAA发布新的网络广告尺寸标准<br/>在这6种格式中，除了去年iab发布的4种“通用广告包”中的格式：160x600, 300x250, 180x150及728x90，还包括新公布的468x60 和120x600（擎天柱）2种。]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=279</link>
			<title><![CDATA[javascript获取sel&#101;ct的值全解]]></title>
			<author>hoogl@126.com(Huison)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Wed,08 Jul 2009 17:13:51 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=279</guid>	
		<description><![CDATA[<strong>javascript获取sel&#101;ct的值全解</strong><br/><br/>获取显示的汉字<br/><br/>document.getElementById(&#34;bigclass&#34;).options[window.document.getElementById(&#34;bigclass&#34;).sel&#101;ctedIndex].text<br/><br/>获取数据库中的id<br/><br/>window.document.getElementById(&#34;bigclass&#34;).value<br/><br/>获取sel&#101;ct组分配的索引id<br/><br/>window.document.getElementById(&#34;bigclass&#34;).sel&#101;ctedIndex<br/><br/><br/>例子：<br/><br/>&lt;sel&#101;ct name=&#34;bigclass&#34; id=&#34;bigclass&#34; onChange=&#34;javascript:up&#100;atePage2();&#34;&gt;<br/>&nbsp;&nbsp;&lt;option value=&#34;&#34; sel&#101;cted=&#34;sel&#101;cted&#34;&gt;ajax实验&lt;/option&gt;<br/>&lt;option value=&#34;4&#34;&gt;我试一试哈&lt;/option&gt;<br/>&lt;/sel&#101;ct&gt;<br/><br/><br/>使用<br/>document.getElementById(&#34;bigclass&#34;).options[window.document.getElementById(&#34;bigclass&#34;).sel&#101;ctedIndex].text<br/>的结果是：我试一试哈<br/><br/>使用<br/>window.document.getElementById(&#34;bigclass&#34;).value<br/>的结果是：4<br/><br/>使用<br/>window.document.getElementById(&#34;bigclass&#34;).sel&#101;ctedIndex<br/>的结果是：1]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=274</link>
			<title><![CDATA[CSS hack:区分IE6，IE7，firefox]]></title>
			<author>hoogl@126.com(Fishthink)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Wed,15 Apr 2009 20:25:04 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=274</guid>	
		<description><![CDATA[<div>区别<span class="blue">IE6</span>与<span class="orange">FF</span>：</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;background:<span class="orange">orange</span>;<span class="red">*</span>background:<span class="blue">blue</span>;</div>
<p>&nbsp;</p>
<div>区别<span class="blue">IE6</span>与<span class="green">IE7</span>：</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;background:<span class="green">green</span>&nbsp;<span class="red">!important</span>;background:<span class="blue">blue</span>;</div>
<p>&nbsp;</p>
<div>区别<span class="green">IE7</span>与<span class="orange">FF</span>：</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;background:<span class="orange">orange</span>;&nbsp;<span class="red">*</span>background:<span class="green">green</span>;</div>
<p>&nbsp;</p>
<div>区别<span class="orange">FF</span>，<span class="green">IE7</span>，<span class="blue">IE6</span>：</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp;background:<span class="orange">orange</span>;<span class="red">*</span>background:<span class="green">green</span>&nbsp;<span class="red">!important</span>;*background:<span class="blue">blue</span>;</div>
<p>&nbsp;</p>
<div>注：IE都能识别*;标准浏览器(如FF)不能识别*；</div>
<div>IE6能识别*，但不能识别 !important,</div>
<div>IE7能识别*，也能识别!important;</div>
<div>FF不能识别*，但能识别!important;</div>
<p>&nbsp;</p>
<table class="hack" cellspacing="1" cellpadding="0" border="0">
    <tbody>
        <tr>
            <td>&nbsp;</td>
            <td>IE6</td>
            <td>IE7</td>
            <td>FF</td>
        </tr>
        <tr>
            <td>*</td>
            <td>&radic;</td>
            <td>&radic;</td>
            <td>&times;</td>
        </tr>
        <tr>
            <td>!important</td>
            <td>&times;</td>
            <td>&radic;</td>
            <td>&radic;</td>
        </tr>
    </tbody>
</table>
<p>&nbsp;</p>
<hr />
<p>另外再补充一个，下划线&quot;<span class="red">_</span>&quot;,<br />
IE6支持下划线，IE7和firefox均不支持下划线。<br />
<br />
于是大家还可以这样来区分<span class="blue">IE6</span>，<span class="green">IE7</span>，<span class="orange">firefox</span><br />
: background:<span class="orange">orange</span>;<span class="red">*</span>background:<span class="green">green</span>;<span class="red">_</span>background:<span class="blue">blue</span>; <br />
<br />
注：不管是什么方法，书写的顺序都是firefox的写在前面，IE7的写在中间，IE6的写在最后面。</p>]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=273</link>
			<title><![CDATA[[转]最新CSS兼容方案]]></title>
			<author>hoogl@126.com(Fishthink)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Sat,07 Mar 2009 11:50:52 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=273</guid>	
		<description><![CDATA[最新的CSS兼容方案，让你的样式完美兼容各大浏览器，这个方案主要是用来解决Safari的，Opear是在测试的时候顺带试了一下，结果发现竟然也行，所以顺便也解决了。:)<br/><br/>.e {/*FF OP*/<br/>background-color: #FF0000<br/>}<br/>html* .e{/*Sa IE7 OP*/<br/>background-color:#FF00FF<br/>}<br/>*+html .e{<br/>background-color:#000000;/*OP*/<br/>*background-color:#0000FF;/*IE7*/<br/>}<br/>* html .e{/*IE6*/<br/>background-color:#00FFFF<br/>}<br/>经FF2、OP9.21、OP9.10、Sa3.0.3(pc)、IE7、IE6测试通过，如果你在其他的浏览器版本上测试过，欢迎给我留言，把结果告诉我。<br/><br/>需要注意的是：IE7对样式的解释跟DTD是有关，在没有DTD的时候，IE7是能读取IE6的hack的。]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=272</link>
			<title><![CDATA[[转][更新]最新CSS兼容方案]]></title>
			<author>hoogl@126.com(Fishthink)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Sat,07 Mar 2009 11:44:53 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=272</guid>	
		<description><![CDATA[在对浏览器兼容性要求越来越高的时候，大家是否正在寻找一个完整的解决方案呢？继《[原]最新CSS兼容方案》之后，更新的CSS hack出炉啦，包括FF、IE6、IE7、Opear、Safari，需要注意的是IE由于在不同的DTD上渲染的模式不同，“_”这个hack的使用要注意页面是否使用了DTD或XML申明（&lt;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&gt;）。<br/><br/>.class{<br/>background-color:# FFFF00;/*所有浏览器*/<br/>* background-color:#00FF00;/*IE*/<br/>_ background-color:# 00FFFF;/*IE6*/<br/>}<br/><br/>@media all and(min-width:0){<br/>.class{<br/>background-color:#FF00FF; /*Opera */<br/>} }/*只有Opera识别*/<br/><br/>@media all and (min-width:0){<br/>.class{<br/>background-color:#FF00FF; /*Opera和Sa */<br/>html* .class{<br/>background-color:# 808080; /*Sa*/<br/>}<br/>}}<br/><br/>已在实际工作中应用，欢迎大家提供更好的解决方案。]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=259</link>
			<title><![CDATA[LI浮动后的清除方法]]></title>
			<author>hoogl@126.com(Huison)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Mon,06 Oct 2008 19:02:54 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=259</guid>	
		<description><![CDATA[<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;ul id=&#34;links&#34;&gt;<br/>&lt;li&gt;&lt;a href=&#34;<a href="http://www.duibai.net.cn" target="_blank">http://www.duibai.net.cn</a>&#34; target=&#34;_blank&#34;&gt;对白&lt;/a&gt;&lt;/li&gt;<br/>&lt;li&gt;&lt;a href=&#34;<a href="http://www.huison.cn/web.asp" target="_blank">http://www.huison.cn/web.asp</a>&#34;&gt;网站制作&lt;/a&gt;&lt;/li&gt;<br/>&lt;/ul&gt;</div></div><br/>UL中又不能插入DIV来清除浮动,在UL上面加clear:both;又不好使!<br/>在网上找了一种方法:<br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">&lt;ul id=&#34;links&#34; style=&#34;overflow:auto;zoom:1;&#34;&gt;<br/>&lt;li&gt;&lt;a href=&#34;<a href="http://www.duibai.net.cn" target="_blank">http://www.duibai.net.cn</a>&#34; target=&#34;_blank&#34;&gt;对白&lt;/a&gt;&lt;/li&gt;<br/>&lt;li&gt;&lt;a href=&#34;<a href="http://www.huison.cn/web.asp" target="_blank">http://www.huison.cn/web.asp</a>&#34;&gt;网站制作&lt;/a&gt;&lt;/li&gt;<br/>&lt;/ul&gt;</div></div><br/><br/><strong>下面这段话从蓝色摘过来的!</strong><br/><br/>注：忘了一个很重要的内容，并不是所有的overflow属性都可起来一样的效果，比如visible属性就只能对IE起作用。<br/>这样的话就有一个问题啦，如果要有高度，而且内容超出高度的时候，定义auto或hidden都可能会有一些不想要的效果出现。这里提供一个解决方案：对于IE6及以下版本的IE，可以直接定义高度；对于IE7、FF、OP，可定义min-height。<br/><br/>CSS代码<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/code.gif" style="margin:0px 2px -3px 0px" alt="程序代码"/> 程序代码</div><div class="UBBContent">overflow<br/>{<br/>height:auto;<br/>_height:200px;<br/>min-height:200px;<br/>verflow:auto;<br/>zoom:1;<br/>_overflow:visible;<br/>}</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=253</link>
			<title><![CDATA[float后,IE下margin双倍间距的问题]]></title>
			<author>hoogl@126.com(Huison)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Wed,10 Sep 2008 16:28:23 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=253</guid>	
		<description><![CDATA[一段无错的代码把一个居左浮动(float:left)的元素放置进一个容器盒(box)，并在浮动元素上使用了左边界(margin-left)来令它和容器的左边产生一段距离。看起来相当的简单，对吗？但直至它被在IE/Win中浏览为止，在浏览器中居左浮动元素的边界长度被神秘地翻了一倍！<br/><br/>Steve Clason发现了一个修复办法，描述在他的<a target="_blank" href="http://www.positioniseverything.net/explorer/floatIndent.html">Guest Demo</a>里，修复了双倍边界和围绕文字缩进Bug。这是一个经典的IE的Bug修复办法，使用一个属性来修复影响不相关属性的Bug。 <br/><br/>现在如何来做？ <br/>研究它，简单地将{display: inline;}设置给浮动元素就是全部所需做的！是的，听起来太简单了，不是吗？不过这是真的，仅仅一个display的&#34;inline&#34;声明已经能够胜任了。 <br/>熟悉规则的人知道浮动元素自动设置为&#34;block&#34;元素，而不管他们之前是什么。就如Steve从W3C里指出： <br/><a target="_blank" href="http://www.w3.org/TR/CSS2/visuren.html#floats">9.5.1 Positioning the float: the &#39;float&#39; property</a>这说明浮动元素上的{display: inline;}会被忽略，事实上所有的浏览器没有呈现任何改变，包括IE。但是，它不知何故让IE停止将浮动元素的边界翻倍。因而，这个修复办法可以被直接应用，而没有任何繁琐的隐藏方法。<br/><br/>最后看例子:<br/>下面是照常显示IE Bug的例子<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp86570"><!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>The IE Doubled Float-Margin Bug(IE双倍浮动边界Bug)</title>
<style type=&#34;text/css&#34;>
*{padding:0px;}
#box{width:800px;background:#dddddd;margin:0px auto;}
#head,#foot{height:100px;background:blue;clear:both;}
#left{float:left;margin-left:10px;width:120px;}
#right{float:right;margin-right:10px;width:650px;}
#left,#right{height:300px;background:red;margin-top:10px;margin-bottom:10px;}
</style>
</head>

<body id=&#34;box&#34;>
<div id=&#34;head&#34;>顶部</div>
<div id=&#34;left&#34;>左边</div>
<div id=&#34;right&#34;>右边</div>
<div id=&#34;foot&#34;>底部</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp86570')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp86570')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div><br/>下面是对浮动元素使用了&#34;inline&#34;修复<div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp78284"><!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34;>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34; />
<title>The IE Doubled Float-Margin Bug(IE双倍浮动边界Bug)</title>
<style type=&#34;text/css&#34;>
*{padding:0px;}
#box{width:800px;background:#dddddd;margin:0px auto;}
#head,#foot{height:100px;background:blue;clear:both;}
#left{float:left;margin-left:10px;width:120px;display: inline;}
#right{float:right;margin-right:10px;width:650px;display: inline;}
#left,#right{height:300px;background:red;margin-top:10px;margin-bottom:10px;}
</style>
</head>

<body id=&#34;box&#34;>
<div id=&#34;head&#34;>顶部</div>
<div id=&#34;left&#34;>左边</div>
<div id=&#34;right&#34;>右边</div>
<div id=&#34;foot&#34;>底部</div>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp78284')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp78284')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=247</link>
			<title><![CDATA[比较规范的CSS命名]]></title>
			<author>hoogl@126.com(懒鱼)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Fri,29 Aug 2008 09:54:16 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=247</guid>	
		<description><![CDATA[页头：header<br/>登录条：loginBar<br/>标志：logo<br/>侧栏：sideBar<br/>广告：banner<br/>导航：nav<br/>子导航：subNav<br/>菜单：menu<br/>子菜单：subMenu<br/>搜索：search<br/>滚动：scroll<br/>页面主体：main<br/>内容：content<br/>标签页：tab<br/>文章列表：list<br/>提示信息：msg<br/>小技巧：tips<br/>栏目标题：title<br/>加入：joinus<br/>指南：guild<br/>服务：service<br/>热点：hot<br/>新闻：news<br/>下载：download<br/>注册：register<br/>状态：status<br/>按钮：btn<br/>投票：vote<br/>合作伙伴：partner<br/>友情链接：friendLink<br/>页脚：footer<br/>版权：copyRight<br/><br/>1.css ID 的命名<br/>外　套：　　wrap<br/>主导航：　　mainNav<br/>子导航：　　subnav<br/>页　脚：　　footer<br/>整个页面：　content<br/>页　眉：　　header<br/>页　脚：　　footer<br/>商　标：　　label<br/>标　题：　　title<br/>主导航：　　mainNav（globalNav）<br/>顶导航：　　topnav<br/>边导航：　　sidebar<br/>左导航：　　leftsideBar<br/>右导航：　　rightsideBar<br/>旗　志：　　logo<br/>标　语：　　banner<br/>菜单内容1： menu1Content<br/>菜单容量：　menuContainer<br/>子菜单：　　submenu<br/>边导航图标：sidebarIcon<br/>注释：　　　note<br/>面包屑：　　breadCrumb(即页面所处位置导航提示）<br/>容器：　　　container<br/>内容：　　　content<br/>搜索：　　　search<br/>登陆：　　　login<br/>功能区：　　shop(如购物车，收银台)<br/>当前的　　　current<br/><br/>2.另外在编辑样式表时可用的注释可这样写：<br/>&lt;– Footer –&gt;<br/>内容区<br/>&lt;– End Footer –&gt;<br/><br/>3.样式文件命名<br/>主要的 master.css<br/>布局，版面 layout.css<br/>专栏 columns.css<br/>文字 font.css<br/>打印样式 print.css<br/>主题 themes.css]]></description>
		</item>
		
			<item>
			<link>http://www.huison.cn/blog/default.asp?id=236</link>
			<title><![CDATA[鼠标放上文字滚动代码]]></title>
			<author>hoogl@126.com(Huison)</author>
			<category><![CDATA[页面]]></category>
			<pubDate>Thu,17 Jul 2008 11:34:22 +0800</pubDate>
			<guid>http://www.huison.cn/blog/default.asp?id=236</guid>	
		<description><![CDATA[感谢蓝色理想论坛版主caiying2007,我只是在其基础上进行了改正 <img src="http://www.huison.cn/blog/images/smilies/8.gif" border="0" style="margin:0px 0px -2px 0px" alt=""/><br/><br/><div class="UBBPanel"><div class="UBBTitle"><img src="http://www.huison.cn/blog/images/html.gif" style="margin:0px 2px -3px 0px"> HTML代码</div><div class="UBBContent"><TEXTAREA rows="8" id="temp62489"><!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>&#34;>
<html xmlns=&#34;<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>&#34;>
<html>
<head>
<meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=gb2312&#34;>
<title>一段文字向左滚动</title>
<style>
*{font-size:12px;line-height:20px;margin:2px;padding:0;}
.ad{width:237px;height:20px;line-height:20px;white-space:nowrap;overflow:hidden;}
span{*display:block}
</style>
</head>
<body>
<div class=&#34;ad&#34; id=&#34;a2&#34; onmouseover=&#34;startscroll(this)&#34; onmouseout='clearTimeout(timer);stopScroll(this);' style=&#34;width:100px;overflow:hidden;&#34;><span style='word-break:keep-all;' >请...避免标点,符号及中西文混n编~~~一一</span></div>
<div class=&#34;ad&#34; id=&#34;a3&#34; onmouseover=&#34;startscroll(this)&#34; onmouseout='clearTimeout(timer);stopScroll(this);' style=&#34;width:100px;overflow:hidden;&#34;><span style='word-break:keep-all' >请避免标,点符.号及中and西文混编</span></div>
<div class=&#34;ad&#34; id=&#34;a1&#34; onmouseover=&#34;startscroll(this)&#34; onmouseout='clearTimeout(timer);stopScroll(this);' style=&#34;width:100px;overflow:hidden;&#34;><span style='word-break:keep-all;' >pppppp+pppppp_ppppp'ppp'pppppp,ppppppp.pppppppppp</span></div>
<script type=&#34;text/javascript&#34;>
var timer,stops=0;
function startscroll(o){
if (stops==1)return
stops=1
	var w1=o.getElementsByTagName(&#34;span&#34;)[0].offsetWidth,w2=o.offsetWidth;
	if(w1<=w2)return;
	hs(o,w1-w2+10,0,w1-w2+10);
}
function hs(o,d,c,p){
	c++;var t=(c>0?-c:c);o.getElementsByTagName(&#34;span&#34;)[0].style.marginLeft=t+'px';
	if(c==d){if(d==0){timer=window.setTimeout(function(){hs(o,p,0,p)},2500);}else timer=window.setTimeout(function(){hs(o,0,-p,p)},2500);}
	else timer=window.setTimeout(function(){hs(o,d,c,p)},20);
}

function stopScroll(old){
	old.getElementsByTagName(&#34;span&#34;)[0].style.marginLeft=0+'px';
	stops=0;
}
</script>
</body>
</html></TEXTAREA><br/><INPUT onclick="runEx('temp62489')"  type="button" value="运行此代码"/> <INPUT onclick="doCopy('temp62489')"  type="button" value="复制此代码"/><br/> [Ctrl+A 全部选择 提示：你可先修改部分代码，再按运行]</div></div>]]></description>
		</item>
		
</channel>
</rss>