<?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>LiGht&#039;s BloG &#187; Front-End</title>
	<atom:link href="http://lightory.net/tag/front-end/feed/" rel="self" type="application/rss+xml" />
	<link>http://lightory.net</link>
	<description>You Are the CSS to My HTML</description>
	<lastBuildDate>Mon, 05 Jul 2010 17:14:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://lightory.net/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>You Design,I Code</title>
		<link>http://lightory.net/you-design-i-code/481/</link>
		<comments>http://lightory.net/you-design-i-code/481/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 23:46:10 +0000</pubDate>
		<dc:creator>LiGht</dc:creator>
				<category><![CDATA[杂谈杂论]]></category>
		<category><![CDATA[Front-End]]></category>

		<guid isPermaLink="false">http://lightory.net/?p=481</guid>
		<description><![CDATA[最近比较闲，因此继续发扬日行一善的精神，免费帮大家写点页面。你只需提供的 PSD 设计图，我会将其转化成高质量的静态网页，也就是俗称的 PSD2HTML。 You Design I Code，在国外比较盛行，国内... ]]></description>
			<content:encoded><![CDATA[<p>最近比较闲，因此继续发扬日行一善的精神，免费帮大家写点页面。你只需提供的 PSD 设计图，我会将其转化成高质量的静态网页，也就是俗称的 <strong>PSD2HTML</strong>。</p>
<p><strong>You Design I Code</strong>，在国外比较盛行，国内似乎还不怎么样。</p>
<p><a href="http://lightory.net/you-design-i-code/481/"><img class="alignnone size-full wp-image-482" title="You Design I Code" src="http://lightory.net/wp-content/uploads/2010/03/You-Design-I-Code.png" alt="You Design I Cod" width="550" height="413" /></a></p>
<p>我可以保证：</p>
<ul>
<li>所有代码（XHTML、CSS、JavaScript）完全手写</li>
<li>兼容主流浏览器（Chrome、Firefox、Opera、IE6、IE7、IE8）</li>
<li>Div+CSS 布局，语义化标签</li>
<li>渐进增强的 JavaScript</li>
<li>最大限度地符合 W3C 标准</li>
</ul>
<p>需要说明的是，这项免费服务仅针对个人（比如做博客模版）。如果是商业网站，仍需收取少量费用。</p>
<p><strong>Feel free to contact me : lightory(at)gmail.com</strong></p>
<p><strong>2010/06/24 Update：</strong>本服务暂停。</p>

	<p><b>Tags: </b><a href="http://lightory.net/tag/front-end/" title="Front-End" rel="tag">Front-End</a></p>

	<ul class="st-related-posts">
	<li><a href="http://lightory.net/sexy-buttons/466/" title="Sexy Buttons &#8211; 快速制作漂亮的 Web 按钮 (2010/02/17)">Sexy Buttons &#8211; 快速制作漂亮的 Web 按钮</a> (28 Comments)</li>
	<li><a href="http://lightory.net/css-debug-tips/441/" title="CSS调试的技巧 (2009/12/24)">CSS调试的技巧</a> (14 Comments)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://lightory.net/you-design-i-code/481/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Sexy Buttons &#8211; 快速制作漂亮的 Web 按钮</title>
		<link>http://lightory.net/sexy-buttons/466/</link>
		<comments>http://lightory.net/sexy-buttons/466/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 12:00:29 +0000</pubDate>
		<dc:creator>LiGht</dc:creator>
				<category><![CDATA[杂谈杂论]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Front-End]]></category>

		<guid isPermaLink="false">http://lightory.net/?p=466</guid>
		<description><![CDATA[作为 Web 界面基本元素之一，按钮有着非常重要的作用。多数浏览器的默认按钮样式都十分简陋，想要制作精致一点的按钮又颇费功夫。 想要快速制作漂亮的 Web 按钮？不妨试试 Sexy Buttons。 Sexy... ]]></description>
			<content:encoded><![CDATA[<link rel="stylesheet" href="http://sexybuttons.googlecode.com/svn/trunk/sexybuttons.css" type="text/css" />
<p>作为 Web 界面基本元素之一，按钮有着非常重要的作用。多数浏览器的默认按钮样式都十分简陋，想要制作精致一点的按钮又颇费功夫。</p>
<p>想要快速制作漂亮的 Web 按钮？不妨试试 <a href="http://code.google.com/p/sexybuttons/">Sexy Buttons</a>。</p>
<p><a href="http://lightory.net/sexy-buttons/466/"><img src="http://i45.tinypic.com/bgxo2w.jpg" alt="Sexy Buttons" /></a></p>
<p><a href="http://code.google.com/p/sexybuttons/">Sexy Buttons</a> 是一个基于 HTML/CSS 的框架（其实就是一个 CSS 文件和一些图标），其特性如下：</p>
<ul>
<li>不使用 JavaScript，纯 CSS</li>
<li>支持使用 <tt>&lt;button&gt;</tt> 或 <tt>&lt;a&gt;</tt> 标签</li>
<li>支持多种状态： normal, hover/focus, active, and disabled.</li>
<li>通过改变 HTML 标签的 class，可以制作出多种风格不同的按钮</li>
</ul>
<p>下面是一些简单的示例。</p>
<p><strong>基本使用</strong>：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>提交<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>取消<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span></pre></div></div>

<p><a class="sexybutton" href="http://lightory.net/sexy-buttons/466/"><span><span>提交</span></span></a><button class="sexybutton"><span><span>取消</span></span></button></p>
<p><strong>加上图标</strong>：在最内层添加一个带有特殊 class 的 span 标签，或者直接通过 img 标签添加图标（Sexy Buttons 自带有上千个图标）。</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ok&quot;</span>&gt;</span>提交<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cancel&quot;</span>&gt;</span>取消<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span></pre></div></div>

<p><a class="sexybutton" href="http://lightory.net/sexy-buttons/466/"><span><span><span class="ok">Submit</span></span></span></a><button class="sexybutton"><span><span><span class="cancel">Cancel</span></span></span></button></p>
<p><strong>改变尺寸</strong>：给外层标签添加特殊的 class</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Normal Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton sexymedium&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Medium Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton sexylarge&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Large Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p><a class="sexybutton" href="http://lightory.net/sexy-buttons/466/"><span><span>Normal Button</span></span></a><a class="sexybutton sexymedium" href="http://lightory.net/sexy-buttons/466/"><span><span>Medium Button</span></span></a><a class="sexybutton sexylarge" href="http://lightory.net/sexy-buttons/466/"><span><span>Large Button</span></span></a></p>
<p><strong>改变样式</strong>：给外层标签添加特殊的 class</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton sexyorange&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ok&quot;</span>&gt;</span>Orange Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton sexyyellow&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ok&quot;</span>&gt;</span>Yellow Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">button</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sexybutton sexysimple&quot;</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ok&quot;</span>&gt;</span>Simple Button<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">button</span>&gt;</span></pre></div></div>

<p><button class="sexybutton sexyorange"><span><span><span class="ok">Orange Button</span></span></span></button><button class="sexybutton sexyyellow"><span><span><span class="ok">Yellow Button</span></span></span></button><button class="sexybutton sexysimple"><span class="ok">Simple Button</span></button></p>
<p>更多的使用方法，可以参见其<a href="http://sexybuttons.googlecode.com/svn/trunk/index.html">官方演示</a>，或者直接阅读 sexybutton.css 文件。另外，根据实际需要，你也可以方便地对 Sexy Buttons 进行扩展。</p>
<p>我很喜欢 Sexy Buttons 所暗含的 Web 界面元素组件化的思想。</p>

	<p><b>Tags: </b><a href="http://lightory.net/tag/css/" title="CSS" rel="tag">CSS</a>, <a href="http://lightory.net/tag/front-end/" title="Front-End" rel="tag">Front-End</a></p>

	<ul class="st-related-posts">
	<li><a href="http://lightory.net/css-debug-tips/441/" title="CSS调试的技巧 (2009/12/24)">CSS调试的技巧</a> (14 Comments)</li>
	<li><a href="http://lightory.net/you-design-i-code/481/" title="You Design,I Code (2010/03/28)">You Design,I Code</a> (30 Comments)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://lightory.net/sexy-buttons/466/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>CSS调试的技巧</title>
		<link>http://lightory.net/css-debug-tips/441/</link>
		<comments>http://lightory.net/css-debug-tips/441/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 04:35:25 +0000</pubDate>
		<dc:creator>LiGht</dc:creator>
				<category><![CDATA[杂谈杂论]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Debug]]></category>
		<category><![CDATA[Front-End]]></category>

		<guid isPermaLink="false">http://lightory.net/?p=441</guid>
		<description><![CDATA[最近在读《精通CSS》一书消遣。 全书以技巧为主、理论为辅，介绍了许多 CSS 应用小技巧，如果忽略一些令人哭笑不得的术语翻译之外，这是一本难得的好书，十分适合进阶之用。 第九章《bug ... ]]></description>
			<content:encoded><![CDATA[<p><img style="margin: 0px 10px 10px 0px; float: right;" src="http://t.douban.com/lpic/s2008593.jpg" alt="" />最近在读《<a href="http://www.douban.com/subject/1898098/" target="_blank">精通CSS</a>》一书消遣。</p>
<p>全书以技巧为主、理论为辅，介绍了许多 CSS 应用小技巧，如果忽略一些令人哭笑不得的术语翻译之外，这是一本难得的好书，十分适合进阶之用。</p>
<p>第九章《bug 和 bug 修复》，介绍了一些 CSS 调试的技巧，尤为实用。毕竟，与其授人以鱼，不若授人以渔。若不会自己研究、解决问题，就算你会用再多 CSS hack，遇到新 bug 时，也是白搭。</p>
<p>下面就加上我自己的一些理解，整理、总结如下：</p>
<p>0、<strong>使用更符合标准的浏览器</strong></p>
<p>先使用更符合标准的浏览器（如 Firefox、Opera、Chrome 等）作为主要开发浏览器，页面显示正确后，再在能力较差的浏览器（如 IE）中进行兼容性测试。</p>
<p>1、<strong>进行 W3C 校验</strong></p>
<p>遇到问题时，不要直接归罪于浏览器 bug，很多时候，问题源于你不规范的代码。尝试进行 <a href="http://validator.w3.org/" target="_blank">W3C 校验</a>，这能帮助你发现代码中的不规范之处。</p>
<p>当然，这不意味着必须做到 100% validate。W3C 验证只是一个参考标准，而不是必须无条件遵循的规则。</p>
<p>2、<strong>给相关元素加上边框</strong></p>
<p>尝试隔离问题，识别症状，查明是什么导致了这个问题。隔离问题的方法之一是给相关元素加上边框，看它们的反应。</p>
<p>如果你使用 Firefox 作为开发浏览器，推荐 <a href="https://addons.mozilla.org/zh-CN/firefox/addon/60" target="_blank">Web Developer 扩展</a>，它可以方便地给指定元素加上边框，无需修改代码。除此之外，它还附带了许多其它的调试工具。</p>
<p>3、<strong>创建基本测试案例</strong></p>
<p>如果问题比较棘手，可以创建基本测试案例（重现 bug 所需的最少 HTML/CSS ），去掉一些无关变量，使问题尽可能简单。</p>
<p>4、<strong>回避浏览器 bug</strong></p>
<p>对于浏览器 bug，最简单的解决方案是——回避它。尝试使用其它方案实现相同的表现效果，实在没办法了再使用 CSS hack（这可能会留下隐患）。</p>

	<p><b>Tags: </b><a href="http://lightory.net/tag/css/" title="CSS" rel="tag">CSS</a>, <a href="http://lightory.net/tag/debug/" title="Debug" rel="tag">Debug</a>, <a href="http://lightory.net/tag/front-end/" title="Front-End" rel="tag">Front-End</a></p>

	<ul class="st-related-posts">
	<li><a href="http://lightory.net/sexy-buttons/466/" title="Sexy Buttons &#8211; 快速制作漂亮的 Web 按钮 (2010/02/17)">Sexy Buttons &#8211; 快速制作漂亮的 Web 按钮</a> (28 Comments)</li>
	<li><a href="http://lightory.net/you-design-i-code/481/" title="You Design,I Code (2010/03/28)">You Design,I Code</a> (30 Comments)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://lightory.net/css-debug-tips/441/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
