<?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>一起CSS &#187; 链接</title>
	<atom:link href="http://www.17css.com/tag/%e9%93%be%e6%8e%a5/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.17css.com</link>
	<description>一起CSS，专注、关注CSS等前端技术。</description>
	<lastBuildDate>Tue, 17 Jan 2012 04:59:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>用jQuery去除链接虚线</title>
		<link>http://www.17css.com/%e7%94%a8jquery%e5%8e%bb%e9%99%a4%e9%93%be%e6%8e%a5%e8%99%9a%e7%ba%bf/</link>
		<comments>http://www.17css.com/%e7%94%a8jquery%e5%8e%bb%e9%99%a4%e9%93%be%e6%8e%a5%e8%99%9a%e7%ba%bf/#comments</comments>
		<pubDate>Sat, 11 Apr 2009 20:21:30 +0000</pubDate>
		<dc:creator>青色</dc:creator>
				<category><![CDATA[前端技术]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[虚线]]></category>
		<category><![CDATA[链接]]></category>

		<guid isPermaLink="false">http://www.17css.com/?p=334</guid>
		<description><![CDATA[链接点击后会出现虚线框，因为链接一般都有跳转页面，所以不容易看出来。如果没有跳转或阻止了这个行为的话，就能很明显的看到虚线。这个虚线在某些情况下会影响美观，所以可以考虑... ]]></description>
			<content:encoded><![CDATA[<p>链接点击后会出现虚线框，因为链接一般都有跳转页面，所以不容易看出来。如果没有跳转或阻止了这个行为的话，就能很明显的看到虚线。这个虚线在某些情况下会影响美观，所以可以考虑把它去掉。虽然在《<a target="_blank" href="http://www.17css.com/remove-link-dashed/" title="去除点击链接时出现的虚线框">去除点击链接时出现的虚线框</a>》中说了几种方法，而且一起使用也能兼容 IE 和 FF ，但未免麻烦了点。前两天看到使用 jQuery 解决这个问题问题的方法，很简单，而且兼容性很好，所以把它&ldquo;拿&rdquo;过来了。具体代码如下：</p>
<pre class="prettyprint">
$(function(){
	$('a').bind('focus',function(){
		if(this.blur){ //如果支持 this.blur
			this.blur();
		};
	});
});</pre>
<p>细心的您可能发现了按钮点击后也会出现虚线框，那就一起把它去掉吧：</p>
<pre class="prettyprint">
$(function(){
	$('a,input[type=&quot;button&quot;],input[type=&quot;submit&quot;]').bind('focus',function(){
		if(this.blur){ //如果支持 this.blur
			this.blur();
		};
	});
});</pre>
<p><a target="_blank" href="http://www.17css.com/works/09/03/jQuery-dashed.html" title="jQuery去除链接虚线">查看Demo</a></p>
<p>很简单吧，简单的都没有什么技术含量了。。。</p>
<p>&copy;2012 <a href="http://www.17css.com">一起CSS</a>. All Rights Reserved.</p>.<h2  class="related_post_title">相关日志</h2><ul class="related_post"><li><a href="http://www.17css.com/ie-jquery-not-bug/" title="jQuery过滤选择器:not在IE中的bug">jQuery过滤选择器:not在IE中的bug</a> (2)</li><li><a href="http://www.17css.com/flip/" title="jQuery插件Flip">jQuery插件Flip</a> (4)</li><li><a href="http://www.17css.com/cloud-zoom/" title="jQuery插件Cloud Zoom">jQuery插件Cloud Zoom</a> (3)</li><li><a href="http://www.17css.com/jquery-easyui/" title="jQuery EasyUI">jQuery EasyUI</a> (6)</li><li><a href="http://www.17css.com/amend-auto-play-jquery-slide/" title="修改：自动播放的jQuery幻灯片">修改：自动播放的jQuery幻灯片</a> (13)</li><li><a href="http://www.17css.com/auto-play-jquery-slide/" title="自动播放的jQuery幻灯片">自动播放的jQuery幻灯片</a> (16)</li><li><a href="http://www.17css.com/a-jquery-slide/" title="jQuery写的一个幻灯片">jQuery写的一个幻灯片</a> (20)</li><li><a href="http://www.17css.com/%e7%94%a8%e6%a0%87%e5%87%86w3c%e7%9b%92%e5%ad%90%e6%a8%a1%e5%9e%8b/" title="用标准W3C盒子模型">用标准W3C盒子模型</a> (2)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.17css.com/%e7%94%a8jquery%e5%8e%bb%e9%99%a4%e9%93%be%e6%8e%a5%e8%99%9a%e7%ba%bf/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

