<?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>Blog｜WSQSITE &#187; Form</title>
	<atom:link href="http://wsqsite.com/blog/tag/form/feed/" rel="self" type="application/rss+xml" />
	<link>http://wsqsite.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 13 Aug 2011 12:23:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://wsqsite.com/blog/?pushpress=hub'/>
		<item>
		<title>CSSForm 解決IE6表格錯位問題</title>
		<link>http://wsqsite.com/blog/cssform-ie6-error/</link>
		<comments>http://wsqsite.com/blog/cssform-ie6-error/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 10:26:49 +0000</pubDate>
		<dc:creator>WSQ</dc:creator>
				<category><![CDATA[教學分享]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Form]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://wsqsite.com/blog/?p=47</guid>
		<description><![CDATA[現在的網頁模版大多製作得美輪美奐，使用了大量的圖片和CSS，可是在IE6下便顯得錯漏百出，不是跑位了，就是不見了。不論你是網頁設計者還是使用者，相信大家也有在使用時IE6遇到很多的問題。 這次的問題在我製作模版也有遇到過，特意拿出來一說，希望能為各位提供一個解決方法。 如果大家使用CSS直接在text input下加上背景圖，在IE6下如果輸入了太多文字的話，我們便會發現背景圖竟然會跟著文字一起向右跑。現在我來說一說這個問題的解決方法。 這是一個正常的表格代碼。可是如果我們直接加上CSS的話，便會導致在IE6下跑位。 &#60;input type=&#34;text&#34; name=&#34;author&#34;/&#62; 所以我們要在表格前加上一個&#60;div&#62;包裝著input。並且把背景圖加到&#60;div&#62;上。 &#60;div class=&#34;form_author&#34;&#62;&#60;input type=&#34;text&#34; name=&#34;author&#34;/&#62;&#60;/div&#62; CSS代碼應該這樣寫。 /* 設定div寬度和高度，和背景圖片。 */ .form_author { height: 24px; width: 350px; margin:5px 0 5px 5px; background: #fff url(imgs/bg_picture.gif) left top no-repeat; } /* 設定被div包著的input背景為透明，沒有邊框。 */ .form_author input { border: 0; margin: 5px 0 0 30px; height: 20px; width: 130px; background-color: transparent; font-size: 12px; <a href="http://wsqsite.com/blog/cssform-ie6-error/" class="more-link">Continue reading</a>]]></description>
			<content:encoded><![CDATA[<div class="preview"><img src="http://wsqsite.com/blog/wp-content/uploads/2010/03/cssform_preview.jpg" alt="CSS Form" title="CSS Form" /></div>
<p>現在的網頁模版大多製作得美輪美奐，使用了大量的圖片和CSS，可是在IE6下便顯得錯漏百出，不是跑位了，就是不見了。不論你是網頁設計者還是使用者，相信大家也有在使用時IE6遇到很多的問題。<br/ ><br />
這次的問題在我製作模版也有遇到過，特意拿出來一說，希望能為各位提供一個解決方法。</p>
<p><span id="more-47"></span></p>
<p>如果大家使用CSS直接在text input下加上背景圖，在IE6下如果輸入了太多文字的話，我們便會發現背景圖竟然會跟著文字一起向右跑。現在我來說一說這個問題的解決方法。</p>
<p>這是一個正常的表格代碼。可是如果我們直接加上CSS的話，便會導致在IE6下跑位。</p>
<pre>
&lt;input type=&quot;text&quot; name=&quot;author&quot;/&gt;
</pre>
<p>所以我們要在表格前加上一個&lt;div&gt;包裝著input。並且把背景圖加到&lt;div&gt;上。</p>
<pre>
&lt;div class=&quot;form_author&quot;&gt;&lt;input type=&quot;text&quot; name=&quot;author&quot;/&gt;&lt;/div&gt;
</pre>
<p>CSS代碼應該這樣寫。</p>
<pre>
/* 設定div寬度和高度，和背景圖片。 */
.form_author {
height: 24px;
width: 350px;
margin:5px 0 5px 5px;
background: #fff url(imgs/bg_picture.gif) left top no-repeat;
}
/* 設定被div包著的input背景為透明，沒有邊框。 */
.form_author input {
border: 0;
margin: 5px 0 0 30px;
height: 20px;
width: 130px;
background-color: transparent;
font-size: 12px;
color: #999;
}
/* 當滑鼠移到div上時，背景會往上移，做成不同的效果。 */
.form_author:hover, .form_author:focus {
background-position: 0 -24px;
}
</pre>
<p>
完整表格範例按<a href="http://www.box.net/shared/8mr5u348pb" title="download CSSForm">這裡下載</a>。<br />
樣式為留言表單的樣式。</p>
]]></content:encoded>
			<wfw:commentRss>http://wsqsite.com/blog/cssform-ie6-error/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

