<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
<channel>
<title><![CDATA[海峡IT网 - Css技巧]]></title>
<link>http://www.haixiait.com/</link>
<description><![CDATA[haixiaIT.COM_创造价值,传播技术,分享快乐!]]></description>
<language>zh-cn</language>
<copyright><![CDATA[Copyright 2005 PBlog3 v2.8]]></copyright>
<webMaster><![CDATA[airzen@126.com(airzen)]]></webMaster>
<generator>PBlog2 v2.4</generator> 
<image>
	<title>海峡IT网</title>
	<url>http://www.haixiait.com/images/logos.gif</url>
	<link>http://www.haixiait.com/</link>
	<description>海峡IT网</description>
</image>

			<item>
			<link>http://www.haixiait.com/article.asp?id=380</link>
			<title><![CDATA[div底对齐CSS代码]]></title>
			<author>airzen@126.com(airzen)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Thu,25 Feb 2010 06:41:15 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=380</guid>
		<description><![CDATA[<p>&nbsp; &lt;style type=&quot;text/css&quot;&gt;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; .aa{height:400px;width:350px;background:#eee;position:relative;}&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; .aa div{width:100px;}&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; .bb{background:red;height:300px;<strong>position: absolute;bottom:15px</strong>;left:50px;}&nbsp;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; .cc{background:green;height:200px;<strong>position: absolute;bottom:0</strong>;left:200px;}&nbsp;&nbsp;&nbsp; <br />
&lt;/style&gt;&nbsp;&nbsp; <br />
&lt;div class=&quot;aa&quot;&gt;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;bb&quot;&gt;bb&lt;/div&gt;&nbsp;&nbsp; <br />
&nbsp;&nbsp;&nbsp; &lt;div class=&quot;cc&quot;&gt;cc&lt;/div&gt;&nbsp;&nbsp; <br />
&lt;/div&gt; <br />
&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=121</link>
			<title><![CDATA[不使用iframe,div+css滚动条效果]]></title>
			<author>airzen@126.com(airzen)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Thu,27 Dec 2007 10:20:21 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=121</guid>
		<description><![CDATA[<p><font face="Courier New">&lt;div style=&quot;<font color="#339966">width</font>:value;<font color="#339966">height</font>:value;<font color="#339966">overflow-x</font>:hidden;<font color="#339966">overflow-y</font>:scroll&quot;&gt;</font></p>
<p><font face="Courier New">内容区</font>当设定的显示范围,容纳不了显示的内容的时候,就会出现滚动条,可根据自己的需要适当的改进width,height,overflow-x,overflow-y的属性,即可达到iframe的效果airzen整理</p>
<p><br />&lt;/div&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=75</link>
			<title><![CDATA[用样式控制文本框为只读]]></title>
			<author>airzen@126.com(airzen)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Tue,20 Nov 2007 13:58:41 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=75</guid>
		<description><![CDATA[<p><u><font color="#800080">用样式控制文本框为只读。刚在一个群里看的。<br />readonly:expression(this.readOnly=true)</font></u><a href="http://service.12530.com/new12530/gsqt/sc/jlb/1.html"></a> </p>
<p>贴在这里与大家共享.</p>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=30</link>
			<title><![CDATA[超链接下划线的小把戏]]></title>
			<author>airzen@126.com(admin)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Tue,06 Nov 2007 10:48:07 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=30</guid>
		<description><![CDATA[<p>如果某种你看到图片中的下划线链接请不要惊讶。因为它其实很简单，你也可以做到。<br /><b>来这里看看实际效果 <a title="http://5key.net/demo/hyperlink-underline" href="http://5key.net/demo/hyperlink-underline" target="_blank">http://5key.net/demo/hyperlink-underline</a> </b></p>
<p><img alt="" src="http://www.haixiait.com/attachments/month_0711/l2007117211314.gif" /><br />首先，我们来说说这个彩色的下划线是怎么弄的。也许你已经猜到了，一张渐变的背景图片。没错！就是下面这张图片。<br /><img alt="" src="http://www.haixiait.com/attachments/month_0711/v200711721146.gif" /><br />再看看下面的css，整个链接的变化效果我想你应该已经明白了吧。<br />如果不是太清楚。先来<a title="http://www.baidu.com/s?wd=%BB%AC%B6%AF%C3%C5%BC%BC%CA%F5&amp;lm=0&amp;si=&amp;rn=10&amp;tn=max2_cb&amp;ie=gb2312&amp;ct=0&amp;cl=3&amp;f=1&amp;rsp=0" href="http://www.baidu.com/s?wd=%BB%AC%B6%AF%C3%C5%BC%BC%CA%F5&amp;lm=0&amp;si=&amp;rn=10&amp;tn=max2_cb&amp;ie=gb2312&amp;ct=0&amp;cl=3&amp;f=1&amp;rsp=0" target="_blank">了解一下滑动门的概念</a> </p>
<div class="code"><span class="Code">
<div class="code">body {<br />&nbsp;&nbsp;font-size:14px;<br />&nbsp;&nbsp;font-family: Helvetica, sans-serif;<br />&nbsp;&nbsp;padding:10px;<br />&nbsp;&nbsp;margin:0px;<br />}<br />h1{margin:0; padding:0; font-size:16px; }<br />p{padding:20px 0 0 0;}<br />a{<br />&nbsp;&nbsp;*padding-bottom:1px;<br />&nbsp;&nbsp;text-decoration:none;<br />&nbsp;&nbsp;}<br />a:link{<br />&nbsp;&nbsp;color:#06F;<br />&nbsp;&nbsp;background: url(1.gif);<br />&nbsp;&nbsp;background-repeat: repeat-x;<br />&nbsp;&nbsp;background-position: 0 16px;<br />}<br />a:visited{<br />&nbsp;&nbsp;color:#06f;<br />&nbsp;&nbsp;background-image: url(1.gif);<br />&nbsp;&nbsp;background-repeat: repeat-x;<br />&nbsp;&nbsp;background-position: 0 16px;<br />}<br />a:hover{<br />&nbsp;&nbsp;color:#039;<br />&nbsp;&nbsp;background:url(1.gif) repeat-x 0 bottom;<br />}</div>
</span></div>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=29</link>
			<title><![CDATA[性感的CSS Menus]]></title>
			<author>airzen@126.com(admin)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Tue,06 Nov 2007 10:17:48 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=29</guid>
		<description><![CDATA[当你需要一个简单易用的导航菜单得时候。CSS Menu是个不错的选择。相对于Flash/Javascript，他们小巧轻便，而且方便使用。当然，他们也能做出很多很漂亮的效果。<br /><br /><b><span style="FONT-SIZE: 10pt">Css Menu Example</span></b><br />这里有几个专门收集CSS 导航菜单的站点，其中有很多优秀的作品。也许能给你带来一定的启发。你会发现原来CSS Menu还可以这样做。<br /><br /><b>1. <a title="http://www.alvit.de/css-showcase/css-galleries-tabs-navigation-showcase.php" href="http://www.alvit.de/css-showcase/css-galleries-tabs-navigation-showcase.php" target="_blank">http://www.alvit.de/css-showcase/css-galleries-tabs-navigation-showcase.php</a><br />这里收录了近百个优秀站点的CSS导航菜单</b><br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_220615_1.gif" src="http://5key.net/blog/uploads/200709/08_220615_1.gif" /></div>
<br /><br /><b>2. <a title="http://www.drweb.de/weblog/weblog/?p=531" href="http://www.drweb.de/weblog/weblog/?p=531" target="_blank">http://www.drweb.de/weblog/weblog/?p=531</a><br />收录了大量的使用CSS tab Menu的站点</b><br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_220932_2.gif" src="http://5key.net/blog/uploads/200709/08_220932_2.gif" /></div>
<br /><br /><b>3. <a title="http://www.smashingmagazine.com/2007/03/14/css-based-navigation-menus-modern-solutions" href="http://www.smashingmagazine.com/2007/03/14/css-based-navigation-menus-modern-solutions" target="_blank">http://www.smashingmagazine.com/2007/03/14/css-based-navigation-menus-modern-solutions</a><br />收录了50多个漂亮易用的CSS Menu</b><br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_221212_3.gif" src="http://5key.net/blog/uploads/200709/08_221212_3.gif" /></div>
<br /><br /><b><span style="FONT-SIZE: 10pt">Css Menu Tutorials</span></b><br />这里列举了大量优秀的CSS Menu教程。而且都比较简单易学，通过学习，你也能做出漂亮的CSS Menu<br /><br />1. <a title="http://www.cssplay.co.uk/menus/index.html" href="http://www.cssplay.co.uk/menus/index.html" target="_blank">http://www.cssplay.co.uk/menus/index.html</a><br />著名的cssplay，为广大读者奉献了很多优秀的css范例。<br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_221727_4.gif" src="http://5key.net/blog/uploads/200709/08_221727_4.gif" /></div>
<br /><br />2. <a title="http://www.seoconsultants.com/css/menus/tutorial/" href="http://www.seoconsultants.com/css/menus/tutorial/" target="_blank">http://www.seoconsultants.com/css/menus/tutorial/</a><br />水平、垂直的二级CSS menu教程<br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_221848_5.gif" src="http://5key.net/blog/uploads/200709/08_221848_5.gif" /></div>
<br /><br />3. <a title="http://superfluousbanter.org/archives/2004/05/navigation-matrix-reloaded/" href="http://superfluousbanter.org/archives/2004/05/navigation-matrix-reloaded/" target="_blank">http://superfluousbanter.org/archives/2004/05/navigation-matrix-reloaded/</a><br />完美！一张图片完成的CSS Menu效果。demo看这里：<a title="http://www.nundroo.com/nav_matrix/welcome2.html" href="http://www.nundroo.com/nav_matrix/welcome2.html" target="_blank">http://www.nundroo.com/nav_matrix/welcome2.html</a><br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_222436_6.gif" src="http://5key.net/blog/uploads/200709/08_222436_6.gif" /></div>
<br /><br />4. <a title="http://codylindley.com/CSS/325/css-step-menu" href="http://codylindley.com/CSS/325/css-step-menu" target="_blank">http://codylindley.com/CSS/325/css-step-menu</a><br />CSS menu step by step<br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_222606_7.gif" src="http://5key.net/blog/uploads/200709/08_222606_7.gif" /></div>
<br /><br /><span style="FONT-SIZE: 10pt"><b>OK，这么多的东西也许无法一时消化，如果你急需一个CSS Menu。下面的一些站点中提供了大量的CSS menu下载。</b></span><br /><br />1. <a title="http://www.13styles.com/" href="http://www.13styles.com/" target="_blank">http://www.13styles.com/</a><br />13个Css Menu下载<br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_222901_8.gif" src="http://5key.net/blog/uploads/200709/08_222901_8.gif" /></div>
<br /><br />2. <a title="http://www.webmaster-toolkit.com/css-menu-generator.shtml" href="http://www.webmaster-toolkit.com/css-menu-generator.shtml" target="_blank">http://www.webmaster-toolkit.com/css-menu-generator.shtml</a><br />创建左边导航菜单，只需 修改即可<br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_223149_9.gif" src="http://5key.net/blog/uploads/200709/08_223149_9.gif" /></div>
<br /><br />3. <a title="http://www.roscripts.com/8_web_menus_you_just_can&amp;#39;t_miss-116.html" href="http://www.roscripts.com/8_web_menus_you_just_can&amp;#39;t_miss-116.html" target="_blank">http://www.roscripts.com/8_web_menus_you_just_can&amp;#39;t_miss-116.html</a><br />8个不可错过的CSS Menu下载<br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_223325_10.gif" src="http://5key.net/blog/uploads/200709/08_223325_10.gif" /></div>
<br /><br />4. <a title="http://e-lusion.com/design/menu/" href="http://e-lusion.com/design/menu/" target="_blank">http://e-lusion.com/design/menu/</a><br />9种垂直CSS Menu下载<br /><br />
<div style="OVERFLOW-X: auto; WIDTH: 100%"><img style="WIDTH: 600px; myimg: function(){
this.style.width=(this.offsetWidth &gt; 600)?'600px':'auto'; }" alt="uploads/200709/08_223437_11.gif" src="http://5key.net/blog/uploads/200709/08_223437_11.gif" /></div>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=12</link>
			<title><![CDATA[文字溢出自动判断裁切显示。 ]]></title>
			<author>airzen@126.com(admin)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Fri,17 Feb 2006 11:54:03 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=12</guid>
		<description><![CDATA[<p>以前我们在做新闻列表的时候，都会对字符进行长度判断，考虑到中英文字符长度问题，还用专用函数进行判断输出，耗费一定的程序处理资源，现有以下CSS样式，你可以直接输出。本人使用比较爽，所以贴出来同各位WEB 开发者共享！</p>
<p>&lt;TABLE <font color="#006600">style=&quot;table-layout:fixed;border-collapse:collapse;font-size:12px;&quot; border=&quot;1&quot; width=&quot;200&quot;</font> bordercolor=#666666&gt;<br />&nbsp; &lt;TR&gt;<br />&nbsp;&nbsp;&nbsp; &lt;TD <font color="#ff0000">nowrap</font> <font color="#006600">style=&quot;overflow:hidden;text-overflow:ellipsis;&quot;&gt;</font>请务必尊重知识产权，杜绝侵权行为。鼓励原创，谴责未经允许的转贴。&lt;/TD&gt;<br />&nbsp; &lt;/TR&gt;<br />&lt;/TABLE&gt;</p>
<p>TD中显示的东西您可以无限长，他的长度是由TABLE容器 的width 进行控制，还有 TD的 <font color="#ff0000">nowrap</font>属性一定不要漏</p>
<p>&nbsp;</p>
<p>airzen整理由06年2月17日 <br /><a href="http://blog.csdn.net/airzen">http://blog.csdn.net/airzen</a><br /></p>]]></description>
		</item>
		
			<item>
			<link>http://www.haixiait.com/article.asp?id=11</link>
			<title><![CDATA[CSS样式控制图片裁切显示 ]]></title>
			<author>airzen@126.com(admin)</author>
			<category><![CDATA[Css技巧]]></category>
			<pubDate>Fri,17 Feb 2006 11:48:49 +0800</pubDate>
			<guid>http://www.haixiait.com/default.asp?id=11</guid>
		<description><![CDATA[<p>我们在论坛新闻系统的时候，其中的有些图片会比较大破坏了整体布局的美观，现通过CSS定义方式使图片进行裁切显示，即，当图片的容器不足以显示整个图片时，会以左上角为开始显示，不足显示的将会隐藏。相关各位同仁也有此想法。现有以下CSS样式，所以贴出来同各位WEB 开发者共享！</p>
<p>当然有人用img 的onload 事件对其宽高进行js控制，不过经招有时会因网页加载过快，或过慢而来不及执行，现向大家推荐代码如下，自行研究。</p>
<p>&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=gb2312&quot;&gt;<br />&lt;style type=&quot;text/css&quot;&gt;<br /><font color="#ff6600">.divClass{height:100%;width:100%;overflow:hidden;Margin-bottom:5px}<br /></font>&lt;/style&gt;<br />&lt;title&gt;COPY数据到ID群集中by ID | 图片CSS定义裁切显示| 文字的宽度自适应缩放&lt;/title&gt;<br />&lt;/head&gt;</p>
<p>&lt;body &gt;<br />&lt;div id=&quot;airzen&quot; class=&quot;divClass&quot;&gt;&lt;img src=&quot;http://www.haixiait.com/attachments/month_0711/g2007115114655.jpg&quot;&gt;&lt;/div&gt;<br />&lt;/body&gt;</p>
<p>&nbsp;</p>
<p>&nbsp;说明：以上样式你可以自己定义，但要保留<font color="#ff6600">overflow:hidden;</font><font color="#000000">祝各位工作愉快！</font></p>
<p>airzen整理由06年2月17日 <br /><a href="http://blog.csdn.net/airzen">http://blog.csdn.net/airzen</a><br /><a href="http://www.haixiaIT.com">http://www.haixiaIT.com</a></p>]]></description>
		</item>
		
</channel>
</rss>







