<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tomgo的生活博客 &#187; 图片并列</title>
	<atom:link href="http://www.54tomgo.com/archives/tag/%e5%9b%be%e7%89%87%e5%b9%b6%e5%88%97/feed" rel="self" type="application/rss+xml" />
	<link>http://www.54tomgo.com</link>
	<description>生活&#124;电影&#124;新闻&#124;IT话题</description>
	<lastBuildDate>Wed, 29 Jun 2011 06:41:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		
<!-- Start Of Script Generated By WP-PostViews Plus 1.1.18 -->
<script type='text/javascript' src='http://www.54tomgo.com/wp-includes/js/jquery/jquery.js?ver=1.3.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
jQuery.ajax({type:'GET',url:'http://www.54tomgo.com/wp-content/plugins/wp-postviews-plus/postviews_plus.php',data:'todowppvp=&type=tag&id=122_1',cache:false,dataType:'script'});/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus 1.1.18 -->
	<item>
		<title>Div+css代码实现图片的并列连接的效果</title>
		<link>http://www.54tomgo.com/archives/424.html</link>
		<comments>http://www.54tomgo.com/archives/424.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 10:02:15 +0000</pubDate>
		<dc:creator>tomgo</dc:creator>
				<category><![CDATA[心得技巧]]></category>
		<category><![CDATA[DIV]]></category>
		<category><![CDATA[DIV+CSS]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[图片并列]]></category>

		<guid isPermaLink="false">http://www.54tomgo.com/?p=424</guid>
		<description><![CDATA[


Div + Css的代码


今天打开FireFox，发现我们公司的网站一个广告栏飞到右侧去了。我想是使用了表格的缘故。网站是基于Div+css做的，但是自己对DIV建站水平不足，很多地方还保留了TD TR的表格。下决心修改了一下，现在没有不会飞到右侧了。这个代码的作用：在photoshop割图后，要用div接拼起来，实现几张图片的连接效果。对代码进行记录：
#adimglist&#160; 
img{
float:left; /*定义浮动到左侧，这样就可以实现几个连接的图片的并列了*/
margin: 0;/*定义图片的边框为零*/
}
显示效果
&#60;style&#62;
#adimglist&#160; 
img{
float:left; 
margin: 0;
}
&#60;/style&#62;
&#60;div id=&#34;adimglist&#34;&#62;&#60;a href=&#34;http://www.yanwotang.com/catalog_160.html&#34; target=&#34;_blank&#34;&#62;&#60;img src=&#34;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_01.jpg&#34; alt=&#34;正官庄高丽参&#34; width=&#34;155&#34; height=&#34;150&#34; border=&#34;0&#34;&#62;&#60;/a&#62;
&#60;a href=&#34;http://www.yanwotang.com/product_140.html&#34; target=&#34;_blank&#34;&#62;&#60;img src=&#34;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_02.jpg&#34; alt=&#34;顶级白燕条皇&#34; width=&#34;125&#34; height=&#34;150&#34; border=&#34;0&#34;&#62;&#60;/a&#62;
&#60;a href=&#34;http://www.yanwotang.com/product_114.html&#34; target=&#34;_blank&#34;&#62;&#60;img src=&#34;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_03.jpg&#34; alt=&#34;三角白燕盏&#34; width=&#34;130&#34; height=&#34;150&#34; border=&#34;0&#34;&#62;&#60;/a&#62;
&#60;/div&#62;
]]></description>
			<content:encoded><![CDATA[<div class="mceTemp mceIEcenter" style="text-align: center;">
<dl id="attachment_423" class="wp-caption aligncenter" style="width: 460px; text-align: center;">
<dt class="wp-caption-dt"><img class="size-full wp-image-423" title="Div + Css的代码" src="http://www.54tomgo.com/wp-content/uploads/2009/08/binglie.jpg" alt="Div + Css的代码" width="450" height="109" /></dt>
<dd class="wp-caption-dd">Div + Css的代码</dd>
</dl>
</div>
<p>今天打开FireFox，发现我们公司的网站一个广告栏飞到右侧去了。我想是使用了表格的缘故。网站是基于Div+css做的，但是自己对DIV建站水平不足，很多地方还保留了TD TR的表格。下决心修改了一下，现在没有不会飞到右侧了。这个代码的作用：在photoshop割图后，要用div接拼起来，实现几张图片的连接效果。对代码进行记录：<span id="more-424"></span></p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">#adimglist&nbsp; </li>
<li>img{</li>
<li>float:left; /*定义浮动到左侧，这样就可以实现几个连接的图片的并列了*/</li>
<li>margin: 0;/*定义图片的边框为零*/</li>
<li>}</li></ol></div>
<p>显示效果</p>
<div class="hl-surround"><ol class="hl-main ln-show" title="Double click to hide line number." ondblclick = "linenumber(this)"><li class="hl-firstline">&lt;style&gt;</li>
<li>#adimglist&nbsp; </li>
<li>img{</li>
<li>float:left; </li>
<li>margin: 0;</li>
<li>}</li>
<li>&lt;/style&gt;</li>
<li>&lt;div id=&quot;adimglist&quot;&gt;&lt;a href=&quot;http://www.yanwotang.com/catalog_160.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_01.jpg&quot; alt=&quot;正官庄高丽参&quot; width=&quot;155&quot; height=&quot;150&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</li>
<li>&lt;a href=&quot;http://www.yanwotang.com/product_140.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_02.jpg&quot; alt=&quot;顶级白燕条皇&quot; width=&quot;125&quot; height=&quot;150&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</li>
<li>&lt;a href=&quot;http://www.yanwotang.com/product_114.html&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://www.yanwotang.com/syssite/home/shop/1/template/Cn00016/images/tupian_03.jpg&quot; alt=&quot;三角白燕盏&quot; width=&quot;130&quot; height=&quot;150&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</li>
<li>&lt;/div&gt;</li></ol></div>
]]></content:encoded>
			<wfw:commentRss>http://www.54tomgo.com/archives/424.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

