<?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>最优良人 &#187; li</title>
	<atom:link href="http://www.zui88.com/view-tag/li/feed" rel="self" type="application/rss+xml" />
	<link>http://www.zui88.com/blog</link>
	<description>中山php&#124;最优网络</description>
	<lastBuildDate>Mon, 13 May 2013 04:56:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>div li元素不限定宽度，如何浮在中间</title>
		<link>http://www.zui88.com/blog/view-141.html</link>
		<comments>http://www.zui88.com/blog/view-141.html#comments</comments>
		<pubDate>Thu, 18 Aug 2011 09:47:33 +0000</pubDate>
		<dc:creator>lin</dc:creator>
				<category><![CDATA[网站前端]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[li]]></category>
		<category><![CDATA[居中]]></category>
		<category><![CDATA[浮动]]></category>

		<guid isPermaLink="false">http://www.zui88.com/blog/?p=141</guid>
		<description><![CDATA[div的横向居中我们都知道而已用margin:0 auto;实现，但是在不指定宽度的情况下这语句是没有意义的，div为块级元素，在内层DIV未指定宽度的情况下不能通过margin:0 auto来实现居中，将其转换为内联元素（display:inline）后在外层DIV加text-align:center才能居中 &#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62; &#60;html xmlns="http://www.w3.org/1999/xhtml"&#62; &#60;head&#62; &#60;meta http-equiv="Content-Type" content="text/html; charset=gb2312" /&#62; &#60;title&#62;无标题文档&#60;/title&#62; &#60;/head&#62; &#60;body&#62; &#60;div style="width:800px;height:300px;text-align:center;margin:0 auto;background:#efefef;"&#62;&#60;div style="background:#ff33cc;display:inline;"&#62;sdaasddsa&#60;/div&#62;&#60;/div&#62; &#60;/body&#62; &#60;/html&#62;]]></description>
			<content:encoded><![CDATA[<p>div的横向居中我们都知道而已用margin:0 auto;实现，但是在不指定宽度的情况下这语句是没有意义的，div为块级元素，在内层DIV未指定宽度的情况下不能通过margin:0  auto来实现居中，将其转换为内联元素（display:inline）后在外层DIV加text-align:center才能居中<br />
<span style="font-family: Verdana;">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;<br />
&lt;html  xmlns="http://www.w3.org/1999/xhtml"&gt;<br />
&lt;head&gt;<br />
&lt;meta  http-equiv="Content-Type" content="text/html; charset=gb2312"  /&gt;<br />
&lt;title&gt;无标题文档&lt;/title&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;div  style="width:800px;height:300px;text-align:center;margin:0  auto;background:#efefef;"&gt;&lt;div  style="background:#ff33cc;display:inline;"&gt;sdaasddsa&lt;/div&gt;&lt;/div&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zui88.com/blog/view-141.html/feed</wfw:commentRss>
		<slash:comments>498</slash:comments>
		</item>
	</channel>
</rss>
