<?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>大前端</title>
	<atom:link href="http://www.daqianduan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.daqianduan.com</link>
	<description>记录前端的那些事儿！</description>
	<lastBuildDate>Wed, 16 May 2012 08:34:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>华强北在线招聘前端开发工程师(深圳)</title>
		<link>http://www.daqianduan.com/360hqb-job/</link>
		<comments>http://www.daqianduan.com/360hqb-job/#comments</comments>
		<pubDate>Wed, 16 May 2012 08:32:32 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[名企招聘]]></category>
		<category><![CDATA[企业公司]]></category>
		<category><![CDATA[华强北]]></category>
		<category><![CDATA[招聘]]></category>
		<category><![CDATA[招聘/求职]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4292</guid>
		<description><![CDATA[公司名称：华强北在线(www.360hqb.com) 工作地点：中国深圳 工作部门：技术部&#8211;应用开发团队 联系方式：Peng.Wang@360hqb.com 职位名称：前端开发工程师 工作职责： 负责华强北在线WEB前端JavaScript开发工作 负责华强北在WEB前端性能优化提升 参与WEB前端架构设计工作 任职要求：  2-3 年以上WEB前端开发工作经验； 精通JavaScript、Ajax等Web开发技术 ； 精通HTML/XHTML、CSS等网页制作技术，熟悉页面架构和布局； 熟悉W3C标准，对表现与数据分离、Web语义化等有较为深刻的理解； 对WEB前端性能提升优化有一定的经验； 满足以下条件者优先考虑：  熟悉Linux平台，熟悉PHP、Java、C/C++中至少一种后端开发语言； 了解HTML5，熟jQuery\Mootools； 对互联网产品和Web技术有浓厚兴趣，有较好的学习能力和强烈的进取心。]]></description>
			<content:encoded><![CDATA[<p><strong>公司名称：</strong>华强北在线(www.360hqb.com)</p>
<p><strong>工作地点：</strong>中国深圳</p>
<p><strong>工作部门：</strong>技术部&#8211;应用开发团队</p>
<p><strong>联系方式：</strong>Peng.Wang@360hqb.com</p>
<p><strong>职位名称：</strong>前端开发工程师</p>
<p><strong>工作职责：</strong></p>
<ol>
<li>负责华强北在线WEB前端JavaScript开发工作</li>
<li>负责华强北在WEB前端性能优化提升</li>
<li>参与WEB前端架构设计工作</li>
</ol>
<p><strong>任职要求：</strong></p>
<ol>
<li> 2-3 年以上WEB前端开发工作经验；</li>
<li>精通JavaScript、Ajax等Web开发技术 ；</li>
<li>精通HTML/XHTML、CSS等网页制作技术，熟悉页面架构和布局；</li>
<li>熟悉W3C标准，对表现与数据分离、Web语义化等有较为深刻的理解；</li>
<li>对WEB前端性能提升优化有一定的经验；</li>
</ol>
<p><strong>满足以下条件者优先考虑：</strong></p>
<ol>
<li> 熟悉Linux平台，熟悉PHP、Java、C/C++中至少一种后端开发语言；</li>
<li>了解HTML5，熟jQuery\Mootools；</li>
<li>对互联网产品和Web技术有浓厚兴趣，有较好的学习能力和强烈的进取心。</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/360hqb-job/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>简单HTML5打造内涵搜索框</title>
		<link>http://www.daqianduan.com/html5-search-input/</link>
		<comments>http://www.daqianduan.com/html5-search-input/#comments</comments>
		<pubDate>Thu, 10 May 2012 10:58:18 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[用户体验]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4287</guid>
		<description><![CDATA[随着HTML5的深入人心，其越来越多的新功能为更多Coder所用，HTML5新增了不少人性化标签和属性，马上介绍的就是新的表单属性。 实例图片： 代码如下： &#60;input type="text" placeholder="输入 回车搜索" autofocus x-webkit-speech&#62; 很赞？Yes！ 简短的几个代码就能实现原本多行JS才能实现的完美交互效果，这就是HTML5略窥一点的赞！ placeholder是为了设置初始值，并且这个初始值的颜色为灰色，当input的内容变动时，这个值就消失，它的职责就是给人一种亲和力的指示，十分有爱。 autofocus，顾名思义：自动聚焦，当进入当前页面时，这个input会自动获取焦点，而你可以在打开页面后直接输入东西进行搜索。当autofocus出现两次以上的时候，浏览器会选择最后一个带有autofocus属性的input聚焦。 x-webkit-speech，这个大概不必多解释了，webkit核的浏览器（如Chrome）特有的语音识别工具，给input装上也是再好不过的了，话说Google也给自己的搜索框装上这个工具。 好了，不扯了，简单的一个小框框，其实有更多需要我们研究的东西。比如这个简单CSS3 让搜索更有爱是我之前写的搜索框有爱体验，简单即是美！]]></description>
			<content:encoded><![CDATA[<p>随着HTML5的深入人心，其越来越多的新功能为更多Coder所用，HTML5新增了不少人性化标签和属性，马上介绍的就是新的表单属性。</p>
<p><strong>实例图片：</strong></p>
<p style="text-align: center;"><img class="size-full wp-image-4289  aligncenter" title="简单HTML5打造内涵搜索框" src="http://www.daqianduan.com/wp-content/uploads/2012/05/search1.png" alt="" width="400" height="400" /></p>
<p><strong>代码如下：</strong></p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">&lt;input</span> <span style="color: #00c;">type</span>=<span style="color: #a11;">"text"</span> <span style="color: #00c;">placeholder</span>=<span style="color: #a11;">"输入 回车搜索"</span> <span style="color: #00c;">autofocus</span> <span style="color: #00c;">x-webkit-speech</span><span style="color: #170;">&gt;</span></pre>
<p>很赞？Yes！</p>
<p>简短的几个代码就能实现原本多行JS才能实现的完美交互效果，这就是HTML5略窥一点的赞！</p>
<p><strong>placeholder</strong>是为了设置初始值，并且这个初始值的颜色为灰色，当input的内容变动时，这个值就消失，它的职责就是给人一种亲和力的指示，十分有爱。</p>
<p><strong>autofocus</strong>，顾名思义：自动聚焦，当进入当前页面时，这个input会自动获取焦点，而你可以在打开页面后直接输入东西进行搜索。当autofocus出现两次以上的时候，浏览器会选择最后一个带有autofocus属性的input聚焦。</p>
<p><strong>x-webkit-speech</strong>，这个大概不必多解释了，webkit核的浏览器（如Chrome）特有的语音识别工具，给input装上也是再好不过的了，话说Google也给自己的搜索框装上这个工具。</p>
<p>好了，不扯了，简单的一个小框框，其实有更多需要我们研究的东西。比如这个<a title="简单CSS3 让搜索更有爱" href="http://www.daqianduan.com/css3-search/">简单CSS3 让搜索更有爱</a>是我之前写的搜索框有爱体验，简单即是美！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/html5-search-input/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>HTTP状态码详解</title>
		<link>http://www.daqianduan.com/http-ma/</link>
		<comments>http://www.daqianduan.com/http-ma/#comments</comments>
		<pubDate>Wed, 09 May 2012 10:13:16 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[技巧资源]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[站长必备]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4280</guid>
		<description><![CDATA[大家都知道404是木有找到东西，301是定义转向，但又有几个人知道206或者307呢？本文就给大家列出了各种HTTP状态码的含义，适合长期收藏。 状态代码 状态信息 含义 100 Continue 初始的请求已经接受，客户应当继续发送请求的其余部分。（HTTP 1.1新） 101 Switching Protocols 服务器将遵从客户的请求转换到另外一种协议（HTTP 1.1新） 200 OK 一切正常，对GET和POST请求的应答文档跟在后面。 201 Created 服务器已经创建了文档，Location头给出了它的URL。 202 Accepted 已经接受请求，但处理尚未完成。 203 Non-Authoritative Information 文档已经正常地返回，但一些应答头可能不正确，因为使用的是文档的拷贝（HTTP 1.1新）。 204 No Content 没有新文档，浏览器应该继续显示原来的文档。如果用户定期地刷新页面，而Servlet可以确定用户文档足够新，这个状态代码是很有用的。 205 Reset Content 没有新的内容，但浏览器应该重置它所显示的内容。用来强制浏览器清除表单输入内容（HTTP 1.1新）。 206 Partial Content 客户发送了一个带有Range头的GET请求，服务器完成了它（HTTP 1.1新）。 300 Multiple Choices 客户请求的文档可以在多个位置找到，这些位置已经在返回的文档内列出。如果服务器要提出优先选择，则应该在Location应答头指明。 301 Moved Permanently 客户请求的文档在其他地方，新的URL在Location头中给出，浏览器应该自动地访问新的URL。 302 Found 类似于301，但新的URL应该被视为临时性的替代，而不是永久性的。注意，在HTTP1.0中对应的状态信息是“Moved Temporatily”。出现该状态代码时，浏览器能够自动访问新的URL，因此它是一个很有用的状态代码。注意这个状态代码有时候可以和301替换使用。例如，如果浏览器错误地请求http://host/~user（缺少了后面的斜杠），有的服务器 返回301，有的则返回302。严格地说，我们只能假定只有当原来的请求是GET时浏览器才会自动重定向。请参见307。 303 [...]]]></description>
			<content:encoded><![CDATA[<p>大家都知道404是木有找到东西，301是定义转向，但又有几个人知道206或者307呢？本文就给大家列出了各种HTTP状态码的含义，适合长期收藏。</p>
<table cellspacing="0" cellpadding="5">
<tbody>
<tr>
<th width="70">状态代码</th>
<th width="120">状态信息</th>
<th>含义</th>
</tr>
<tr>
<td>100</td>
<td>Continue</td>
<td>初始的请求已经接受，客户应当继续发送请求的其余部分。（HTTP 1.1新）</td>
</tr>
<tr>
<td>101</td>
<td>Switching Protocols</td>
<td>服务器将遵从客户的请求转换到另外一种协议（HTTP 1.1新）</td>
</tr>
<tr>
<td>200</td>
<td>OK</td>
<td>一切正常，对GET和POST请求的应答文档跟在后面。</td>
</tr>
<tr>
<td>201</td>
<td>Created</td>
<td>服务器已经创建了文档，Location头给出了它的URL。</td>
</tr>
<tr>
<td>202</td>
<td>Accepted</td>
<td>已经接受请求，但处理尚未完成。</td>
</tr>
<tr>
<td>203</td>
<td>Non-Authoritative Information</td>
<td>文档已经正常地返回，但一些应答头可能不正确，因为使用的是文档的拷贝（HTTP 1.1新）。</td>
</tr>
<tr>
<td>204</td>
<td>No Content</td>
<td>没有新文档，浏览器应该继续显示原来的文档。如果用户定期地刷新页面，而Servlet可以确定用户文档足够新，这个状态代码是很有用的。</td>
</tr>
<tr>
<td>205</td>
<td>Reset Content</td>
<td>没有新的内容，但浏览器应该重置它所显示的内容。用来强制浏览器清除表单输入内容（HTTP 1.1新）。</td>
</tr>
<tr>
<td>206</td>
<td>Partial Content</td>
<td>客户发送了一个带有Range头的GET请求，服务器完成了它（HTTP 1.1新）。</td>
</tr>
<tr>
<td>300</td>
<td>Multiple Choices</td>
<td>客户请求的文档可以在多个位置找到，这些位置已经在返回的文档内列出。如果服务器要提出优先选择，则应该在Location应答头指明。</td>
</tr>
<tr>
<td>301</td>
<td>Moved Permanently</td>
<td>客户请求的文档在其他地方，新的URL在Location头中给出，浏览器应该自动地访问新的URL。</td>
</tr>
<tr>
<td>302</td>
<td>Found</td>
<td>类似于301，但新的URL应该被视为临时性的替代，而不是永久性的。注意，在HTTP1.0中对应的状态信息是“Moved Temporatily”。出现该状态代码时，浏览器能够自动访问新的URL，因此它是一个很有用的状态代码。注意这个状态代码有时候可以和301替换使用。例如，如果浏览器错误地请求http://host/~user（缺少了后面的斜杠），有的服务器 返回301，有的则返回302。严格地说，我们只能假定只有当原来的请求是GET时浏览器才会自动重定向。请参见307。</td>
</tr>
<tr>
<td>303</td>
<td>See Other</td>
<td>类似于301/302，不同之处在于，如果原来的请求是POST，Location头指定的重定向目标文档应该通过GET提取（HTTP 1.1新）。</td>
</tr>
<tr>
<td>304</td>
<td>Not Modified</td>
<td>客户端有缓冲的文档并发出了一个条件性的请求（一般是提供If-Modified-Since头表示客户只想比指定日期更新的文档）。服务器告 诉客户，原来缓冲的文档还可以继续使用。</td>
</tr>
<tr>
<td>305</td>
<td>Use Proxy</td>
<td>客户请求的文档应该通过Location头所指明的代理服务器提取（HTTP 1.1新）。</td>
</tr>
<tr>
<td>307</td>
<td>Temporary Redirect</td>
<td>和302 （Found）相同。许多浏览器会错误地响应302应答进行重定向，即使原来的请求是POST，即使它实际上只能在POST请求的应答是303时才能重定 向。由于这个原因，HTTP 1.1新增了307，以便更加清除地区分几个状态代码：当出现303应答时，浏览器可以跟随重定向的GET和POST请求；如果是307应答，则浏览器只 能跟随对GET请求的重定向。（HTTP 1.1新）</td>
</tr>
<tr>
<td>400</td>
<td>Bad Request</td>
<td>请求出现语法错误。</td>
</tr>
<tr>
<td>401</td>
<td>Unauthorized</td>
<td>客户试图未经授权访问受密码保护的页面。应答中会包含一个WWW-Authenticate头，浏览器据此显示用户名字/密码对话框，然后在填 写合适的Authorization头后再次发出请求。</td>
</tr>
<tr>
<td>403</td>
<td>Forbidden</td>
<td>资源不可用。服务器理解客户的请求，但拒绝处理它。通常由于服务器上文件或目录的权限设置导致。</td>
</tr>
<tr>
<td>404</td>
<td>Not Found</td>
<td>无法找到指定位置的资源。这也是一个常用的应答。</td>
</tr>
<tr>
<td>405</td>
<td>Method Not Allowed</td>
<td>请求方法（GET、POST、HEAD、DELETE、PUT、TRACE等）对指定的资源不适用。（HTTP 1.1新）</td>
</tr>
<tr>
<td>406</td>
<td>Not Acceptable</td>
<td>指定的资源已经找到，但它的MIME类型和客户在Accpet头中所指定的不兼容（HTTP 1.1新）。</td>
</tr>
<tr>
<td>407</td>
<td>Proxy Authentication Required</td>
<td>类似于401，表示客户必须先经过代理服务器的授权。（HTTP 1.1新）</td>
</tr>
<tr>
<td>408</td>
<td>Request Timeout</td>
<td>在服务器许可的等待时间内，客户一直没有发出任何请求。客户可以在以后重复同一请求。（HTTP 1.1新）</td>
</tr>
<tr>
<td>409</td>
<td>Conflict</td>
<td>通常和PUT请求有关。由于请求和资源的当前状态相冲突，因此请求不能成功。（HTTP 1.1新）</td>
</tr>
<tr>
<td>410</td>
<td>Gone</td>
<td>所请求的文档已经不再可用，而且服务器不知道应该重定向到哪一个地址。它和404的不同在于，返回407表示文档永久地离开了指定的位置，而 404表示由于未知的原因文档不可用。（HTTP 1.1新）</td>
</tr>
<tr>
<td>411</td>
<td>Length Required</td>
<td>服务器不能处理请求，除非客户发送一个Content-Length头。（HTTP 1.1新）</td>
</tr>
<tr>
<td>412</td>
<td>Precondition Failed</td>
<td>请求头中指定的一些前提条件失败（HTTP 1.1新）。</td>
</tr>
<tr>
<td>413</td>
<td>Request Entity Too Large</td>
<td>目标文档的大小超过服务器当前愿意处理的大小。如果服务器认为自己能够稍后再处理该请求，则应该提供一个Retry-After头（HTTP 1.1新）。</td>
</tr>
<tr>
<td>414</td>
<td>Request URI Too Long</td>
<td>URI太长（HTTP 1.1新）。</td>
</tr>
<tr>
<td>416</td>
<td>Requested Range Not Satisfiable</td>
<td>服务器不能满足客户在请求中指定的Range头。（HTTP 1.1新）</td>
</tr>
<tr>
<td>500</td>
<td>Internal Server Error</td>
<td>服务器遇到了意料不到的情况，不能完成客户的请求。</td>
</tr>
<tr>
<td>501</td>
<td>Not Implemented</td>
<td>服务器不支持实现请求所需要的功能。例如，客户发出了一个服务器不支持的PUT请求。</td>
</tr>
<tr>
<td>502</td>
<td>Bad Gateway</td>
<td>服务器作为网关或者代理时，为了完成请求访问下一个服务器，但该服务器返回了非法的应答。</td>
</tr>
<tr>
<td>503</td>
<td>Service Unavailable</td>
<td>服务器由于维护或者负载过重未能应答。例如，Servlet可能在数据库连接池已满的情况下返回503。服务器返回503时可以提供一个 Retry-After头。</td>
</tr>
<tr>
<td>504</td>
<td>Gateway Timeout</td>
<td>由作为代理或网关的服务器使用，表示不能及时地从远程服务器获得应答。（HTTP 1.1新）</td>
</tr>
<tr>
<td>505</td>
<td>HTTP Version Not Supported</td>
<td>服务器不支持请求中所指明的HTTP版本。（HTTP 1.1新）</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/http-ma/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>CSS巧妙实现分隔线的几种方法</title>
		<link>http://www.daqianduan.com/css-a-line/</link>
		<comments>http://www.daqianduan.com/css-a-line/#comments</comments>
		<pubDate>Wed, 02 May 2012 09:00:34 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[前端技巧]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4258</guid>
		<description><![CDATA[前几天一@同事看新浪微博里有个类似分隔线的提示，就自己试了几种方法来实现这个分隔线。下面就是简单实现分隔线的几种方法，个人比较喜欢第二种，我也给出了最后第五种比较2的写法，请大家拍砖，或者提供其他好的方法。 单个标签实现分隔线： &#160; 小小分隔线 单标签实现 &#160; .demo_line_01{ padding: 0 20px 0; margin: 20px 0; line-height: 1px; border-left: 200px solid #ddd; border-right: 200px solid #ddd; text-align: center; } 优点：代码简洁 巧用背景色实现分隔线： &#160; 小小分隔线 巧用色实现 &#160; .demo_line_02{ height: 1px; border-top: 1px solid #ddd; text-align: center; } .demo_line_02 span{ position: relative; top: -8px; background: #fff; padding: 0 20px; } [...]]]></description>
			<content:encoded><![CDATA[<p>前几天一<a href="http://weibo.com/lyushine" target="_blank">@同事</a>看新浪微博里有个类似分隔线的提示，就自己试了几种方法来实现这个分隔线。下面就是简单实现分隔线的几种方法，个人比较喜欢第二种，我也给出了最后第五种比较2的写法，请大家拍砖，或者提供其他好的方法。</p>
<h2>单个标签实现分隔线：</h2>
<p>&nbsp;</p>
<div class="demo_line_01">小小分隔线 单标签实现</div>
<p>&nbsp;</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">demo_line_01</span>{
    <span style="color: #000;">padding</span>: <span style="color: #164;">0</span> <span style="color: #164;">20px</span> <span style="color: #164;">0</span>;
    <span style="color: #000;">margin</span>: <span style="color: #164;">20px</span> <span style="color: #164;">0</span>;
    <span style="color: #000;">line-height</span>: <span style="color: #164;">1px</span>;
    <span style="color: #000;">border-left</span>: <span style="color: #164;">200px</span> <span style="color: #164;">solid</span> <span style="color: #219;">#ddd</span>;
    <span style="color: #000;">border-right</span>: <span style="color: #164;">200px</span> <span style="color: #164;">solid</span> <span style="color: #219;">#ddd</span>;
    <span style="color: #000;">text-align</span>: <span style="color: #164;">center</span>;
}</pre>
<p>优点：代码简洁</p>
<h2>巧用背景色实现分隔线：</h2>
<p>&nbsp;</p>
<div class="demo_line_02"><span>小小分隔线 巧用色实现</span></div>
<p>&nbsp;</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">demo_line_02</span>{
    <span style="color: #000;">height</span>: <span style="color: #164;">1px</span>;
    <span style="color: #000;">border-top</span>: <span style="color: #164;">1px</span> <span style="color: #164;">solid</span> <span style="color: #219;">#ddd</span>;
    <span style="color: #000;">text-align</span>: <span style="color: #164;">center</span>;
}
.<span style="color: #170;">demo_line_02</span> <span style="color: #170;">span</span>{
    <span style="color: #000;">position</span>: <span style="color: #164;">relative</span>;
    <span style="color: #000;">top</span>: <span style="color: #164;">-8px</span>;
    <span style="color: #000;">background</span>: <span style="color: #219;">#fff</span>;
    <span style="color: #000;">padding</span>: <span style="color: #164;">0</span> <span style="color: #164;">20px</span>;
}</pre>
<p>优点：代码简洁，可自适应宽度</p>
<h2>inline-block实现分隔线：</h2>
<p>&nbsp;</p>
<div class="demo_line_03"><strong> </strong><span>小小分隔线 inline-block实现</span><strong> </strong></div>
<p>&nbsp;</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">demo_line_03</span>{
    <span style="color: #000;">width</span>:<span style="color: #164;">600px</span>;
}
.<span style="color: #170;">demo_line_03</span> <span style="color: #170;">b</span>{
    <span style="color: #000;">background</span>: <span style="color: #219;">#ddd</span>;
    <span style="color: #000;">margin-top</span>: <span style="color: #164;">4px</span>;
    <span style="color: #000;">display</span>: <span style="color: #164;">inline-block</span>;
    <span style="color: #000;">width</span>: <span style="color: #164;">180px</span>;
    <span style="color: #000;">height</span>: <span style="color: #164;">1px</span>;
    <span style="color: #000;">_overflow</span>: <span style="color: #164;">hidden</span>;
    <span style="color: #000;">vertical-align</span>: <span style="color: #164;">middle</span>;
}
.<span style="color: #170;">demo_line_03</span> <span style="color: #170;">span</span>{
    <span style="color: #000;">display</span>: <span style="color: #164;">inline-block</span>;
    <span style="color: #000;">width</span>: <span style="color: #164;">220px</span>;
    <span style="color: #000;">vertical-align</span>: <span style="color: #164;">middle</span>;
}</pre>
<p>优点：文字可多行</p>
<h2>浮动实现分隔线：</h2>
<p>&nbsp;</p>
<div class="demo_line_04"><strong> </strong><span>小小分隔线 浮动来实现</span><strong> </strong></div>
<p>&nbsp;</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">demo_line_04</span>{
    <span style="color: #000;">width</span>:<span style="color: #164;">600px</span>;
}
.<span style="color: #170;">demo_line_04</span>{
    <span style="color: #000;">overflow</span>: <span style="color: #164;">hidden</span>;
    <span style="color: #000;">_zoom</span>: <span style="color: #164;">1</span>;
}
.<span style="color: #170;">demo_line_04</span> <span style="color: #170;">b</span>{
    <span style="color: #000;">background</span>: <span style="color: #219;">#ddd</span>;
    <span style="color: #000;">margin-top</span>: <span style="color: #164;">8px</span>;
    <span style="color: #000;">float</span>: <span style="color: #164;">left</span>;
    <span style="color: #000;">width</span>: <span style="color: #164;">26%</span>;
    <span style="color: #000;">height</span>: <span style="color: #164;">1px</span>;
    <span style="color: #000;">_overflow</span>: <span style="color: #164;">hidden</span>;
}</pre>
<p>优点：NUN</p>
<h2>利用字符实现分隔线：</h2>
<p>&nbsp;</p>
<div class="demo_line_05">———————————<span>小小分隔线 字符来实现</span>————————————</div>
<p>&nbsp;</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">&lt;div</span> <span style="color: #00c;">class</span>=<span style="color: #a11;">"demo_line_05"</span><span style="color: #170;">&gt;</span>———————————<span style="color: #170;">&lt;span</span><span style="color: #170;">&gt;</span>小小分隔线 字符来实现<span style="color: #170;">&lt;/span</span><span style="color: #170;">&gt;</span>————————————<span style="color: #170;">&lt;/div</span><span style="color: #170;">&gt;</span></pre>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">demo_line_05</span>{
    <span style="color: #000;">letter-spacing</span>: <span style="color: #164;">-1px</span>;
    <span style="color: #000;">color</span>: <span style="color: #219;">#ddd</span>;
}
.<span style="color: #170;">demo_line_05</span> <span style="color: #170;">span</span>{
    <span style="color: #000;">letter-spacing</span>: <span style="color: #164;">0</span>;
    <span style="color: #000;">color</span>: <span style="color: #219;">#222</span>;
    <span style="color: #000;">margin</span>:<span style="color: #164;">0</span> <span style="color: #164;">20px</span>;
}</pre>
<p>优点：代码简洁</p>
<p>以上简单介绍了分隔线的写法，也许还有其它比较合适的写法，看环境各取所需吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/css-a-line/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>主机点评网 是时候给你的主机跳槽啦</title>
		<link>http://www.daqianduan.com/hostucan/</link>
		<comments>http://www.daqianduan.com/hostucan/#comments</comments>
		<pubDate>Tue, 01 May 2012 11:48:54 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[技巧资源]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[主机]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4252</guid>
		<description><![CDATA[大家都知道，大前端一直以来使用的都是万网的主机，因为在我看来别的都不靠谱。有这种想法无疑是个错误，前不久听一网友说到主机点评网，忍不住去看了看，发现真一个不错的“大众点评网”，只是点评对象只有主机，显然很专业。 主机点评网介绍 主机点评网 (Hostucan) 来自美国, 通过主机搜索和主机用户提供的点评信息, 帮助更多需要主机服务的站长找到最好最适合的主机空间产品. 中国有中国的特色, 除了直接的主机服务商还是很多 IDC 服务, 所以主机点评网创建了他们在中国的网站, 并且搜录各个主机和空间服务商, 收集用户点评. 主机搜索和点评 主机点评网覆盖了很多主机, 基本上你能想到和不能想到的主机信息都可以找到. 无论你是主机服务商还是主机用户, 也可以提交自己的主机. 对主机用户来说, 最有价值的莫过于主机的点评信息. 而上面的信息都是真实的评论, 有一定参考价值. 对于我这个一直使用万网的主机用户来说，主机点评无疑是个好东西，因为我可以通过它寻找更好更快评价更好的主机，而不是一味的只相信万网，毕竟还给我挂了好几次，早就有主机跳槽的想法了。 点评主机换监控 因为从美国到中国, 服务对象不一样, 用户习惯有异, 点评信息也会主要采用中文站长的点评. 为了刺激用户留下评论, 现在用户点评主机即可换取半年的网站监控. 我也通过点评换取了监控服务, 试用两个星期, 效果还是不错的. Hostucan 会在各个布点收集数据以图形化方式向用户展示网站的访问成功率和打开速度. 而它的特点是在国内外多个地方有布点, 用户可以自主选择某一地区的服务器来监控你的主机. 上图是我的网站在电信和联通中的表现. 当然, 如果你愿意. 点评后不要监控服务, 可以领取 10 元人民币作为报酬.]]></description>
			<content:encoded><![CDATA[<p>大家都知道，大前端一直以来使用的都是万网的主机，因为在我看来别的都不靠谱。有这种想法无疑是个错误，前不久听一网友说到<a href="http://www.hostucan.cn/">主机点评网</a>，忍不住去看了看，发现真一个不错的“大众点评网”，只是点评对象只有主机，显然很专业。</p>
<h3>主机点评网介绍</h3>
<p><a href="http://www.hostucan.cn/" rel="external">主机点评网 (Hostucan)</a> 来自美国, 通过主机搜索和主机用户提供的点评信息, 帮助更多需要主机服务的站长找到最好最适合的主机空间产品.</p>
<p><img class="alignnone size-full wp-image-4254" title="hostucan-search-host" src="http://www.daqianduan.com/wp-content/uploads/2012/05/hostucan-search-host.png" alt="" width="600" height="261" /></p>
<p>中国有中国的特色, 除了直接的主机服务商还是很多 IDC 服务, 所以主机点评网创建了他们在中国的网站, 并且搜录各个主机和空间服务商, 收集用户点评.</p>
<h3>主机搜索和点评</h3>
<p>主机点评网覆盖了很多主机, 基本上你能想到和不能想到的主机信息都可以找到. 无论你是主机服务商还是主机用户, 也可以<a href="http://www.hostucan.cn/company/add" rel="nofollow external">提交自己的主机</a>.</p>
<p><img class="alignnone size-full wp-image-4255" title="hostucan-user-feedback" src="http://www.daqianduan.com/wp-content/uploads/2012/05/hostucan-user-feedback.png" alt="" width="600" height="193" /></p>
<p>对主机用户来说, 最有价值的莫过于主机的点评信息. 而上面的信息都是真实的评论, 有一定参考价值. 对于我这个一直使用万网的主机用户来说，主机点评无疑是个好东西，因为我可以通过它寻找更好更快评价更好的主机，而不是一味的只相信万网，毕竟还给我挂了好几次，早就有主机跳槽的想法了。</p>
<h3>点评主机换监控</h3>
<p>因为从美国到中国, 服务对象不一样, 用户习惯有异, 点评信息也会主要采用中文站长的点评. 为了刺激用户留下评论, 现在用户点评主机即可换取半年的网站监控.</p>
<p><img class="alignnone size-full wp-image-4253" title="hostucan-website-monitoring" src="http://www.daqianduan.com/wp-content/uploads/2012/05/hostucan-website-monitoring.png" alt="" width="600" height="312" /></p>
<p>我也通过点评换取了<a href="http://www.hostucan.cn/website-monitoring" rel="nofollow external">监控服务</a>, 试用两个星期, 效果还是不错的. Hostucan 会在各个布点收集数据以图形化方式向用户展示网站的访问成功率和打开速度. 而它的特点是在国内外多个地方有布点, 用户可以自主选择某一地区的服务器来监控你的主机. 上图是我的网站在电信和联通中的表现.</p>
<p>当然, 如果你愿意. 点评后不要监控服务, 可以领取 10 元人民币作为报酬.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/hostucan/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>wordpress 标签添加个性化图标的方法</title>
		<link>http://www.daqianduan.com/wordpress-tag-ico/</link>
		<comments>http://www.daqianduan.com/wordpress-tag-ico/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 11:35:09 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[技巧资源]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress tag]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4248</guid>
		<description><![CDATA[不少同学问到一个同样的问题，如何给标签添加一个图标。 这个展示是大前端D5主题才出现的，也是借鉴国外的一个网站的展示方式，如下图： 是不是很好看呢？方法很简单。 第一步：在wordpress循环中加入以下php代码： $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo '&#60;a class="tag-link tag-link-' . $tag-&#62;term_id . '" href="'.get_tag_link($tag).'"&#62;'. $tag-&#62;name .'&#60;/a&#62;'; } } 第二步：在css文件中设置背景图： .tag-link{color:#888;border:solid 1px #d6d6d6;border-radius:2px;box-shadow:0 1px 1px #eee;padding:2px 6px;margin-right:4px;display:inline-block;} .tag-link:hover{background-color: #fbfbfb;border-color:#bbb;color: #444;box-shadow:0 1px 1px #ddd} .tag-link-101,.tag-link-23{background-image:url(../img/tag.png);background-repeat:no-repeat;padding-left:25px} .tag-link-101{background-position:4px 3px} .tag-link-23{background-position:4px -17px} 给少数同学讲解一下吧！ php中设置了tag的链接，并给与每个链接加上一个公共class="tag-link"和一个私有class="tag-link-tag的ID"，css中先给公共class定义tag的公共样式，然后在私有class上写图标（这里一般指的是定位：background-position）,完事儿。]]></description>
			<content:encoded><![CDATA[<p>不少同学问到一个同样的问题，如何给标签添加一个图标。</p>
<p>这个展示是大前端D5主题才出现的，也是借鉴国外的一个网站的展示方式，如下图：</p>
<p style="text-align: center;"><img title="wordpress 标签添加个性化图标的方法" src="http://www.daqianduan.com/wp-content/uploads/2012/04/wordpress_tag.png" alt="wordpress 标签添加个性化图标的方法" width="630" height="248" /></p>
<p>是不是很好看呢？方法很简单。</p>
<p><strong>第一步：</strong>在wordpress循环中加入以下php代码：</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">$posttags</span> = <span style="color: #170;">get_the_tags</span><span style="color: #170;">(</span><span style="color: #170;">)</span>;
<span style="color: #170;">if</span> <span style="color: #170;">(</span><span style="color: #170;">$posttags</span><span style="color: #170;">)</span> {
	<span style="color: #000;">foreach</span><span style="color: #164;">(</span><span style="color: #164;">$posttags</span> <span style="color: #164;">as</span> <span style="color: #164;">$tag</span><span style="color: #164;">)</span> {
		<span style="color: #000;">echo</span> <span style="color: #a11;">'&lt;a class="tag-link tag-link-'</span> . <span style="color: #164;">$tag-</span>&gt;<span style="color: #164;">term_id</span> . <span style="color: #a11;">'" href="'</span>.<span style="color: #164;">get_tag_link</span><span style="color: #164;">(</span><span style="color: #164;">$tag</span><span style="color: #164;">)</span>.<span style="color: #a11;">'"&gt;'</span>. <span style="color: #164;">$tag-</span>&gt;<span style="color: #164;">name</span> .<span style="color: #a11;">'&lt;/a&gt;'</span>;
	}
}</pre>
<p><strong>第二步：</strong>在css文件中设置背景图：</p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">.<span style="color: #170;">tag-link</span>{<span style="color: #000;">color</span>:<span style="color: #219;">#888</span>;<span style="color: #000;">border</span>:<span style="color: #164;">solid</span> <span style="color: #164;">1px</span> <span style="color: #219;">#d6d6d6</span>;<span style="color: #000;">border-radius</span>:<span style="color: #164;">2px</span>;<span style="color: #000;">box-shadow</span>:<span style="color: #164;">0</span> <span style="color: #164;">1px</span> <span style="color: #164;">1px</span> <span style="color: #219;">#eee</span>;<span style="color: #000;">padding</span>:<span style="color: #164;">2px</span> <span style="color: #164;">6px</span>;<span style="color: #000;">margin-right</span>:<span style="color: #164;">4px</span>;<span style="color: #000;">display</span>:<span style="color: #164;">inline-block</span>;}
.<span style="color: #170;">tag-link</span>:<span style="color: #170;">hover</span>{<span style="color: #000;">background-color</span>: <span style="color: #219;">#fbfbfb</span>;<span style="color: #000;">border-color</span>:<span style="color: #219;">#bbb</span>;<span style="color: #000;">color</span>: <span style="color: #219;">#444</span>;<span style="color: #000;">box-shadow</span>:<span style="color: #164;">0</span> <span style="color: #164;">1px</span> <span style="color: #164;">1px</span> <span style="color: #219;">#ddd</span>}

.<span style="color: #170;">tag-link-101</span>,.<span style="color: #170;">tag-link-23</span>{<span style="color: #000;">background-image</span>:<span style="color: #164;">url</span><span style="color: #164;">(</span>../<span style="color: #164;">img</span>/<span style="color: #164;">tag</span>.<span style="color: #164;">png</span><span style="color: #164;">)</span>;<span style="color: #000;">background-repeat</span>:<span style="color: #164;">no-repeat</span>;<span style="color: #000;">padding-left</span>:<span style="color: #164;">25px</span>}
.<span style="color: #170;">tag-link-101</span>{<span style="color: #000;">background-position</span>:<span style="color: #164;">4px</span> <span style="color: #164;">3px</span>}
.<span style="color: #170;">tag-link-23</span>{<span style="color: #000;">background-position</span>:<span style="color: #164;">4px</span> <span style="color: #164;">-17px</span>}</pre>
<p>给少数同学讲解一下吧！</p>
<p>php中设置了tag的链接，并给与每个链接加上一个公共<code>class="tag-link"</code>和一个私有<code>class="tag-link-tag的ID"</code>，css中先给公共class定义tag的公共样式，然后在私有class上写图标（这里一般指的是定位：background-position）,完事儿。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/wordpress-tag-ico/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>Win8 App使用Listview的简单方法</title>
		<link>http://www.daqianduan.com/win8-app-listview/</link>
		<comments>http://www.daqianduan.com/win8-app-listview/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 00:31:31 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[技巧资源]]></category>
		<category><![CDATA[win8]]></category>
		<category><![CDATA[win8 app]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4246</guid>
		<description><![CDATA[最近在搞公司的win8 app，说白了就是按照微软的一套东西来写出个什么什么来，其中用到最多的就是图文列表的排列，也就是“Listview”这个东西，下面就简单说说这个东西是怎么来的。 这是Win8 App神圣不可侵犯的头文件： &#60;head&#62; &#60;meta charset="utf-8"&#62; &#60;title&#62;ListViewExample&#60;/title&#62; &#60;!-- WinJS references --&#62; &#60;link href="//Microsoft.WinJS.0.6/css/ui-light.css" rel="stylesheet"&#62; &#60;script src="//Microsoft.WinJS.0.6/js/base.js"&#62;&#60;/script&#62; &#60;script src="//Microsoft.WinJS.0.6/js/ui.js"&#62;&#60;/script&#62; &#60;!-- ListViewExample references --&#62; &#60;link href="/css/default.css" rel="stylesheet"&#62; &#60;script src="/js/default.js"&#62;&#60;/script&#62; &#60;!-- Your data file. --&#62; &#60;script src="/js/dataExample.js"&#62;&#60;/script&#62; &#60;/head&#62; HTML页面加入以下代码： &#60;div id="mediumListIconTextTemplate" data-win-control="WinJS.Binding.Template"&#62; &#60;div style="width: 150px; height: 100px;"&#62; &#60;!-- Displays the "picture" field. --&#62; &#60;img src="#" style="width: 60px; [...]]]></description>
			<content:encoded><![CDATA[<p>最近在搞公司的win8 app，说白了就是按照微软的一套东西来写出个什么什么来，其中用到最多的就是图文列表的排列，也就是“Listview”这个东西，下面就简单说说这个东西是怎么来的。</p>
<p><img class="size-full wp-image-4247 aligncenter" title="IC573369" src="http://www.daqianduan.com/wp-content/uploads/2012/04/IC573369.png" alt="" width="507" height="397" /></p>
<p><strong>这是Win8 App神圣不可侵犯的头文件：</strong></p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">&lt;head</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;meta</span> <span style="color: #00c;">charset</span>=<span style="color: #a11;">"utf-8"</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;title</span><span style="color: #170;">&gt;</span>ListViewExample<span style="color: #170;">&lt;/title</span><span style="color: #170;">&gt;</span>

    <span style="color: #a50;">&lt;!-- WinJS references --&gt;</span>
    <span style="color: #170;">&lt;link</span> <span style="color: #00c;">href</span>=<span style="color: #a11;">"//Microsoft.WinJS.0.6/css/ui-light.css"</span> <span style="color: #00c;">rel</span>=<span style="color: #a11;">"stylesheet"</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;script</span> <span style="color: #00c;">src</span>=<span style="color: #a11;">"//Microsoft.WinJS.0.6/js/base.js"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/script</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;script</span> <span style="color: #00c;">src</span>=<span style="color: #a11;">"//Microsoft.WinJS.0.6/js/ui.js"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/script</span><span style="color: #170;">&gt;</span>

    <span style="color: #a50;">&lt;!-- ListViewExample references --&gt;</span>
    <span style="color: #170;">&lt;link</span> <span style="color: #00c;">href</span>=<span style="color: #a11;">"/css/default.css"</span> <span style="color: #00c;">rel</span>=<span style="color: #a11;">"stylesheet"</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;script</span> <span style="color: #00c;">src</span>=<span style="color: #a11;">"/js/default.js"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/script</span><span style="color: #170;">&gt;</span>

    <span style="color: #a50;">&lt;!-- Your data file. --&gt;</span>
    <span style="color: #170;">&lt;script</span> <span style="color: #00c;">src</span>=<span style="color: #a11;">"/js/dataExample.js"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/script</span><span style="color: #170;">&gt;</span>

<span style="color: #170;">&lt;/head</span><span style="color: #170;">&gt;</span></pre>
<p><strong>HTML页面加入以下代码：</strong></p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">&lt;div</span> <span style="color: #00c;">id</span>=<span style="color: #a11;">"mediumListIconTextTemplate"</span> <span style="color: #00c;">data-win-control</span>=<span style="color: #a11;">"WinJS.Binding.Template"</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;div</span> <span style="color: #00c;">style</span>=<span style="color: #a11;">"width: 150px; height: 100px;"</span><span style="color: #170;">&gt;</span>

        <span style="color: #a50;">&lt;!-- Displays the "picture" field. --&gt;</span>
        <span style="color: #170;">&lt;img</span> <span style="color: #00c;">src</span>=<span style="color: #a11;">"#"</span> <span style="color: #00c;">style</span>=<span style="color: #a11;">"width: 60px; height: 60px;"</span>
             <span style="color: #00c;">data-win-bind</span>=<span style="color: #a11;">"alt: title; src: picture"</span> <span style="color: #170;">/&gt;</span>
        <span style="color: #170;">&lt;div</span><span style="color: #170;">&gt;</span>

            <span style="color: #a50;">&lt;!-- Displays the "title" field. --&gt;</span>
            <span style="color: #170;">&lt;h4</span> <span style="color: #00c;">data-win-bind</span>=<span style="color: #a11;">"innerText: title"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/h4</span><span style="color: #170;">&gt;</span>

            <span style="color: #a50;">&lt;!-- Displays the "text" field. --&gt;</span>
            <span style="color: #170;">&lt;h6</span> <span style="color: #00c;">data-win-bind</span>=<span style="color: #a11;">"innerText: text"</span><span style="color: #170;">&gt;</span><span style="color: #170;">&lt;/h6</span><span style="color: #170;">&gt;</span>
        <span style="color: #170;">&lt;/div</span><span style="color: #170;">&gt;</span>
    <span style="color: #170;">&lt;/div</span><span style="color: #170;">&gt;</span>
<span style="color: #170;">&lt;/div</span><span style="color: #170;">&gt;</span>       

<span style="color: #170;">&lt;div</span> <span style="color: #00c;">id</span>=<span style="color: #a11;">"basicListView"</span> <span style="color: #00c;">data-win-control</span>=<span style="color: #a11;">"WinJS.UI.ListView"</span>
    <span style="color: #00c;">data-win-options</span>=<span style="color: #a11;">"{itemDataSource : DataExample.itemList.dataSource, itemTemplate: select('#mediumListIconTextTemplate')}"</span><span style="color: #170;">&gt;</span>
<span style="color: #170;">&lt;/div</span><span style="color: #170;">&gt;</span></pre>
<p><strong>js文件夹中dataExample.js中的js文件：</strong></p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;">(<span style="color: #708;">function</span> () {
    <span style="color: #a11;">"use strict"</span>;

    <span style="color: #708;">var</span> <span style="color: #00f;">dataArray</span> = [
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Basic banana"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Low-fat frozen yogurt"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60banana.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Banana blast"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Ice cream"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60banana.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Brilliant banana"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Frozen custard"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60banana.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Orange surprise"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Sherbet"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60orange.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Original orange"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Sherbet"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60orange.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Vanilla"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Ice cream"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60vanilla.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Very vanilla"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Frozen custard"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60vanilla.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Marvelous mint"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Gelato"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60mint.png"</span> },
    { <span style="color: #000;">title</span>: <span style="color: #a11;">"Succulent strawberry"</span>, <span style="color: #000;">text</span>: <span style="color: #a11;">"Sorbet"</span>, <span style="color: #000;">picture</span>: <span style="color: #a11;">"images/60strawberry.png"</span> }
    ];

    <span style="color: #708;">var</span> <span style="color: #00f;">dataList</span> = <span style="color: #708;">new</span> <span style="color: #000;">WinJS</span>.<span style="color: #000;">Binding</span>.<span style="color: #000;">List</span>(<span style="color: #000-2;">dataArray</span>);

    <span style="color: #a50;">// Create a namespace to make the data publicly</span>
    <span style="color: #a50;">// accessible. </span>
    <span style="color: #708;">var</span> <span style="color: #00f;">publicMembers</span> =
        {
            <span style="color: #000;">itemList</span>: <span style="color: #000-2;">dataList</span>
        };
    <span style="color: #000;">WinJS</span>.<span style="color: #000;">Namespace</span>.<span style="color: #000;">define</span>(<span style="color: #a11;">"DataExample"</span>, <span style="color: #000-2;">publicMembers</span>); 

})();</pre>
<p>ok，余下的就是加入图片，你懂的！</p>
<p>微软对这个方法的详解，E文的，挺啰嗦，看完本文在看它的后半部分还是不错的，<a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh465496.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/windows/apps/hh465496.aspx</a></p>
<p><strong>写在最后：</strong></p>
<p>话说我本人并不看好Win8 App和它的模式，不过就开发Win8 App来说，各种问题的暴露也给开发带来不少趣味，喜欢的同学可以研究下，写个自己网站的App在现今来看还是不错的，因为Win8 App的商店现今差不多是空的，赶时间吧！</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/win8-app-listview/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>30个超赞纹理设计网站实例</title>
		<link>http://www.daqianduan.com/30-textures-design/</link>
		<comments>http://www.daqianduan.com/30-textures-design/#comments</comments>
		<pubDate>Sun, 08 Apr 2012 12:29:07 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[设计路上]]></category>
		<category><![CDATA[网页设计]]></category>
		<category><![CDATA[设计思路]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4199</guid>
		<description><![CDATA[如今，你可以看到纹理设计在名片、移动应用和网站设计中的肯定！适当使用纹理有助创造美好的设计感觉。本文为你展现30个质感网站的简约，干净，含蓄和新鲜纹理的例子，希望对你的设计能有所帮助！ Quantum – Business WordPress Theme Cake Sweet Cake The Impressto Web Design Bundle Unﬁnished Business School Unlayered ResumeBaking BigEye Creative Zoltan Hosszu Mad About Makeup Matt Bond iPhone Icon Design Leitmotiv rShahin STAYA STAYA Label my Coffee Balencic La Web Shop El Passion Arjan Jonker Phillip Caudell Cultural Solutions Catcher’s Performance Summary Intrinsic Studio [...]]]></description>
			<content:encoded><![CDATA[<p>如今，你可以看到纹理设计在名片、移动应用和网站设计中的肯定！适当使用纹理有助创造美好的设计感觉。本文为你展现30个质感网站的简约，干净，含蓄和新鲜纹理的例子，希望对你的设计能有所帮助！</p>
<h3><a href="http://themetrust.com/demos/quantum/" target="_blank">Quantum – Business WordPress Theme</a></h3>
<p><a href="http://themetrust.com/demos/quantum/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/texture_web_design_1.jpg" alt="Quantum" width="580" height="358" /></a></p>
<h3><a href="http://www.cakesweetcake.co.uk/" target="_blank">Cake Sweet Cake</a></h3>
<p><a href="http://www.cakesweetcake.co.uk/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/01_texture_in_web_design_cakesweetcake.jpg" alt="Cake Sweet Cake" width="580" height="340" /></a></p>
<h3><a href="http://bundle.impressto.com/" target="_blank">The Impressto Web Design Bundle</a></h3>
<p><a href="http://bundle.impressto.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/03_texture_in_web_design_bundle.jpg" alt="The Impressto Web Design Bundle" width="580" height="340" /></a></p>
<h3><a href="http://www.moso.com/unfinishedbusiness/" target="_blank">Unﬁnished Business School</a></h3>
<p><a href="http://www.moso.com/unfinishedbusiness/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/04_texture_in_web_design_unfinishedbusiness.jpg" alt="Un?nished Business School" width="580" height="340" /></a></p>
<h3><a href="http://unlayered.com/" target="_blank">Unlayered</a></h3>
<p><a href="http://unlayered.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/05_texture_in_web_design_unlayered.jpg" alt="Unlayered" width="580" height="340" /></a></p>
<h3><a href="http://www.resumebaking.com/" target="_blank">ResumeBaking</a></h3>
<p><a href="http://www.resumebaking.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/06_texture_in_web_design_resumebaking.jpg" alt="ResumeBaking" width="580" height="340" /></a></p>
<h3><a href="http://www.bigeyecreative.com/" target="_blank">BigEye Creative</a></h3>
<p><a href="http://www.bigeyecreative.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/07_texture_in_web_design_bigeyecreative.jpg" alt="BigEye Creative" width="580" height="340" /></a></p>
<h3><a href="http://www.zoltanhosszu.com/" target="_blank">Zoltan Hosszu</a></h3>
<p><a href="http://www.zoltanhosszu.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/08_texture_in_web_design_zoltanhosszu.jpg" alt="Zoltan Hosszu" width="580" height="311" /></a></p>
<h3><a href="http://www.madaboutmakeup.co.uk/" target="_blank">Mad About Makeup</a></h3>
<p><a href="http://www.madaboutmakeup.co.uk/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/09_texture_in_web_design_madaboutmakeup.jpg" alt="Mad About Makeup" width="580" height="340" /></a></p>
<h3><a href="http://mattbond.com.au/" target="_blank">Matt Bond</a></h3>
<p><a href="http://mattbond.com.au/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/10_texture_in_web_design_mattbond.jpg" alt="Matt Bond" width="580" height="340" /></a></p>
<h3><a href="http://iphone-icon.com/" target="_blank">iPhone Icon Design</a></h3>
<p><a href="http://iphone-icon.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/11_texture_in_web_design_iphone-icon.jpg" alt="iPhone Icon Design" width="580" height="340" /></a></p>
<h3><a href="http://www.leitmotiv-webdesign.com/" target="_blank">Leitmotiv</a></h3>
<p><a href="http://www.leitmotiv-webdesign.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/12_texture_in_web_design_leitmotiv.jpg" alt="Leitmotiv" width="580" height="340" /></a></p>
<h3><a href="http://www.rshahin.com/" target="_blank">rShahin</a></h3>
<p><a href="http://www.rshahin.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/13_texture_in_web_design_rshahin.jpg" alt="rShahin" width="580" height="340" /></a></p>
<h3><a href="http://www.stayastaya.com.ar/" target="_blank">STAYA STAYA</a></h3>
<p><a href="http://www.stayastaya.com.ar/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/14_texture_in_web_design_stayastaya.jpg" alt="STAYA STAYA" width="580" height="340" /></a></p>
<h3><a href="http://www.labelmycoffee.com/" target="_blank">Label my Coffee</a></h3>
<p><a href="http://www.labelmycoffee.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/15_texture_in_web_design_labelmycoffee.jpg" alt="Label my Coffee" width="580" height="340" /></a></p>
<h3><a href="http://www.balencic.com/" target="_blank">Balencic</a></h3>
<p><a href="http://www.balencic.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/16_texture_in_web_design_balencic.jpg" alt="Balencic" width="580" height="340" /></a></p>
<h3><a href="http://www.lawebshop.ca/" target="_blank">La Web Shop</a></h3>
<p><a href="http://www.lawebshop.ca/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/17_texture_in_web_design_lawebshop.jpg" alt="La Web Shop" width="580" height="340" /></a></p>
<h3><a href="http://elpassion.pl/" target="_blank">El Passion</a></h3>
<p><a href="http://elpassion.pl/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/18_texture_in_web_design_elpassion.jpg" alt="El Passion" width="580" height="340" /></a></p>
<h3><a href="http://gorgias.nu/" target="_blank">Arjan Jonker</a></h3>
<p><a href="http://gorgias.nu/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/19_texture_in_web_design_gorgias.jpg" alt="Arjan Jonker" width="580" height="340" /></a></p>
<h3><a href="http://madebyphill.co.uk/" target="_blank">Phillip Caudell</a></h3>
<p><a href="http://madebyphill.co.uk/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/20_texture_in_web_design_madebyphill.jpg" alt="Phillip Caudell" width="580" height="340" /></a></p>
<h3><a href="http://www.culturalsolutions.co.uk/" target="_blank">Cultural Solutions</a></h3>
<p><a href="http://www.culturalsolutions.co.uk/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/21_texture_in_web_design_culturalsolutions.jpg" alt="Cultural Solutions" width="580" height="340" /></a></p>
<h3><a href="http://www.catchersperformancesummary.com/" target="_blank">Catcher’s Performance Summary</a></h3>
<p><a href="http://www.catchersperformancesummary.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/22_texture_in_web_design_catchersperformancesummary.jpg" alt="Catcherís Performance Summary" width="580" height="340" /></a></p>
<h3><a href="http://intrinsicstudio.com/" target="_blank">Intrinsic Studio</a></h3>
<p><a href="http://intrinsicstudio.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/23_texture_in_web_design_intrinsicstudio.jpg" alt="Intrinsic Studio" width="580" height="340" /></a></p>
<h3><a href="http://www.jonwallacedesign.it/index.php" target="_blank">Jon Wallace Design</a></h3>
<p><a href="http://www.jonwallacedesign.it/index.php" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/24_texture_in_web_design_jonwallacedesign.jpg" alt="Jon Wallace Design" width="580" height="340" /></a></p>
<h3><a href="http://www.delicham.be/" target="_blank">Delicham</a></h3>
<p><a href="http://www.delicham.be/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/25_texture_in_web_design_delicham.jpg" alt="Delicham" width="580" height="340" /></a></p>
<h3><a href="http://railroadrevivaltour.com/" target="_blank">Railroad Revival Tour</a></h3>
<p><a href="http://railroadrevivaltour.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/26_texture_in_web_design_railroadrevivaltour.jpg" alt="Railroad Revival Tour" width="580" height="340" /></a></p>
<h3><a href="http://www.malak.be/" target="_blank">Malak.be</a></h3>
<p><a href="http://www.malak.be/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/27_texture_in_web_design_malak.jpg" alt="Malak.be" width="580" height="340" /></a></p>
<h3><a href="http://definitioapp.com/esp" target="_blank">Definitio</a></h3>
<p><a href="http://definitioapp.com/esp" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/28_texture_in_web_design_definitioapp.jpg" alt="Definitio" width="580" height="340" /></a></p>
<h3><a href="http://www.jaradjohnson.com/" target="_blank">Jarad Johnson</a></h3>
<p><a href="http://www.jaradjohnson.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/29_texture_in_web_design_jaradjohnson.jpg" alt="Jarad Johnson" width="580" height="340" /></a></p>
<h3><a href="http://www.pixelstadium.com/" target="_blank">Pixel Stadium</a></h3>
<p><a href="http://www.pixelstadium.com/" target="_blank"><img src="http://www.daqianduan.com/wp-content/uploads/2012/04/30_texture_in_web_design_pixelstadium.jpg" alt="Pixel Stadium" width="580" height="325" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/30-textures-design/feed/</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>wordpress 时间显示格式为“xx前”</title>
		<link>http://www.daqianduan.com/wordpress-the-time/</link>
		<comments>http://www.daqianduan.com/wordpress-the-time/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 10:25:29 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[技巧资源]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4198</guid>
		<description><![CDATA[这个相当有用，希望自己的文章时间显示格式像微博时间格式一样，它就可以；如果你发文频率很高，这个时间格式很是友好！刚刚发布的文章，时间显示为“1分钟前”，还有“1天前”、“1分钟前”、“1秒前”等等！ 添加方法很简单，把以下代码贴入主题的functions.php，调用方法是wp默认的“the_time()”，不用修改。 //时间显示xx前 add_filter('the_time', 'past_date'); function past_date(){ $suffix='前'; $endtime='2419200'; $day = '天'; $hour = '小时'; $minute = '分钟'; $second = '秒'; if ($_SERVER['REQUEST_TIME']) $now_time = $_SERVER['REQUEST_TIME']; else $now_time = time(); $m = 60; // 一分钟 $h = 3600; //一小时有3600秒 $d = 86400; // 一天有86400秒 $endtime = (int)$endtime; // 结束时间 $post_time = get_post_time('U', true); $past_time = [...]]]></description>
			<content:encoded><![CDATA[<p>这个相当有用，希望自己的文章时间显示格式像微博时间格式一样，它就可以；如果你发文频率很高，这个时间格式很是友好！刚刚发布的文章，时间显示为“1分钟前”，还有“1天前”、“1分钟前”、“1秒前”等等！</p>
<p><span style="color: #008000;">添加方法很简单，把以下代码贴入主题的functions.php，调用方法是wp默认的“the_time()”，不用修改。</span></p>
<pre>//时间显示xx前
add_filter('the_time', 'past_date');
function past_date(){
	$suffix='前';
	$endtime='2419200';
	$day = '天';
	$hour = '小时';
	$minute = '分钟';
	$second = '秒';
	if ($_SERVER['REQUEST_TIME'])
			$now_time = $_SERVER['REQUEST_TIME'];
	else
			$now_time = time();
	$m = 60;  // 一分钟
	$h = 3600;  //一小时有3600秒
	$d = 86400;  // 一天有86400秒
	$endtime = (int)$endtime;  // 结束时间
	$post_time = get_post_time('U', true);
	$past_time = $now_time - $post_time;  // 文章发表至今经过多少秒
	if($past_time &lt; $m){ //小于1分钟
			$past_date = $past_time . $second;
	}else if ($past_time &lt; $h){ //小于1小时
			$past_date = $past_time / $m;
			$past_date = floor($past_date);
			$past_date .= $minute;
	}else if ($past_time &lt; $d){ //小于1天
			$past_date = $past_time / $h;
			$past_date = floor($past_date);
			$past_date .= $hour;
	}else if ($past_time &lt; $d*10){
			$past_date = $past_time / $d;
			$past_date = floor($past_date);
			$past_date .= $day;
	}else{
			echo get_post_time('m-d');
			return;
	}
	echo $past_date . $suffix;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/wordpress-the-time/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>解决Firefox下input button内文字垂直居中</title>
		<link>http://www.daqianduan.com/firefox-input-button/</link>
		<comments>http://www.daqianduan.com/firefox-input-button/#comments</comments>
		<pubDate>Wed, 21 Mar 2012 08:20:28 +0000</pubDate>
		<dc:creator>浩子</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[兼容]]></category>

		<guid isPermaLink="false">http://www.daqianduan.com/?p=4169</guid>
		<description><![CDATA[很老的问题了，如今再次碰到，记录下来，给后来者方便！ 众所周知，在Firefox下input type=”button”的文字是不好居中的，原因在于Firefox自己比较二，弄了个私有属性，导致以下问题的出现： 按钮左右本身有2px的间距（FF私有属性写了padding:0 2px所致）； 按钮文字居中是不行的（此时设置padding-bottom是没用的） ； 等等&#8230; 解决办法： input[type="reset"]::-moz-focus-inner, input[type="button"]::-moz-focus-inner, input[type="submit"]::-moz-focus-inner, input[type="file"] &#62; input[type="button"]::-moz-focus-inner{ border:none;padding:0; } 因为简单，所以不多写了，研究更是无从说起。]]></description>
			<content:encoded><![CDATA[<p>很老的问题了，如今再次碰到，记录下来，给后来者方便！</p>
<p>众所周知，在Firefox下input type=”button”的文字是不好居中的，原因在于Firefox自己比较二，弄了个私有属性，导致以下问题的出现：</p>
<ol>
<li>按钮左右本身有2px的间距（FF私有属性写了padding:0 2px所致）；</li>
<li>按钮文字居中是不行的（此时设置padding-bottom是没用的） ；</li>
<li>等等&#8230;</li>
</ol>
<p><strong>解决办法：</strong></p>
<pre style="margin: 15px 0; font: 100 12px/18px monaco, andale mono, courier new; padding: 10px 12px; border: #ccc 1px solid; border-left-width: 4px; background-color: #fefefe; box-shadow: 0 0 4px #eee; word-break: break-all; word-wrap: break-word; color: #444;"><span style="color: #170;">input</span>[<span style="color: #170;">type</span>=<span style="color: #a11;">"reset"</span>]::<span style="color: #170;">-moz-focus-inner</span>,
<span style="color: #170;">input</span>[<span style="color: #170;">type</span>=<span style="color: #a11;">"button"</span>]::<span style="color: #170;">-moz-focus-inner</span>,
<span style="color: #170;">input</span>[<span style="color: #170;">type</span>=<span style="color: #a11;">"submit"</span>]::<span style="color: #170;">-moz-focus-inner</span>,
<span style="color: #170;">input</span>[<span style="color: #170;">type</span>=<span style="color: #a11;">"file"</span>] &gt; <span style="color: #170;">input</span>[<span style="color: #170;">type</span>=<span style="color: #a11;">"button"</span>]::<span style="color: #170;">-moz-focus-inner</span>{
	<span style="color: #000;">border</span>:<span style="color: #164;">none</span>;<span style="color: #000;">padding</span>:<span style="color: #164;">0</span>;
}</pre>
<p>因为简单，所以不多写了，研究更是无从说起。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.daqianduan.com/firefox-input-button/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

