﻿<?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; A:link</title>
	<atom:link href="http://www.asklaosan.com/laosan_answer_tag/alink/feed" rel="self" type="application/rss+xml" />
	<link>http://www.asklaosan.com</link>
	<description></description>
	<lastBuildDate>Tue, 08 Feb 2011 11:19:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>样式表中连接的各种状态及表达方式</title>
		<link>http://www.asklaosan.com/laosan_answer_93.html</link>
		<comments>http://www.asklaosan.com/laosan_answer_93.html#comments</comments>
		<pubDate>Fri, 20 Mar 2009 00:49:57 +0000</pubDate>
		<dc:creator>Laosan</dc:creator>
				<category><![CDATA[电脑网络]]></category>
		<category><![CDATA[A:active]]></category>
		<category><![CDATA[A:hover]]></category>
		<category><![CDATA[A:link]]></category>
		<category><![CDATA[A:visited]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[样式表]]></category>
		<category><![CDATA[连接属性]]></category>

		<guid isPermaLink="false">http://www.asklaosan.com/laosan_answer_93.html</guid>
		<description><![CDATA[在样式表（CSS）中，可以对连接的不同状态作出相应的设定，针对个人的要求，来完成不同的表达方式。 先来看看各种连接状态的属性： A:link: &#8211; 正常显示的连接状态 A:visited: &#8211; 连接被访问过后的显示状态 A:active: &#8211; 连接被按下时的状态 A:hover: &#8211; 鼠标悬停在连接上的连接状态 对上述的连接，可以像对正常的文字一样，做出任何你喜欢的修饰。 &#60;style type=&#34;text/css&#34;&#62; A:link { background: #FFCC00; font-family: sans-serif; font-size: 14px; color: #CC3366; text-decoration: none } A:visited { background: #FFCC00; font-family: sans-serif; font-size: 14px; color: #CC3366; text-decoration: none } A:active { background: #FFCC00; font-family: sans-serif; font-size: 14px; color: #CC3366; text-decoration: none [...]]]></description>
			<content:encoded><![CDATA[<p>在样式表（CSS）中，可以对连接的不同状态作出相应的设定，针对个人的要求，来完成不同的表达方式。</p>
<p>先来看看各种连接状态的属性：<br />
A:link: &#8211; 正常显示的连接状态<br />
A:visited: &#8211; 连接被访问过后的显示状态<br />
A:active: &#8211; 连接被按下时的状态<br />
A:hover: &#8211; 鼠标悬停在连接上的连接状态</p>
<p>对上述的连接，可以像对正常的文字一样，做出任何你喜欢的修饰。<br />
<pre><code>&lt;style type=&quot;text/css&quot;&gt;
A:link {
background: #FFCC00;
font-family: sans-serif;
font-size: 14px;
color: #CC3366;
text-decoration: none
}
A:visited {
background: #FFCC00;
font-family: sans-serif;
font-size: 14px;
color: #CC3366;
text-decoration: none
}
A:active {
background: #FFCC00;
font-family: sans-serif;
font-size: 14px;
color: #CC3366;
text-decoration: none
}
A:hover {
background: #FFCC00;
font-family: sans-serif;
font-size: 14px;
color: #CC3366;
text-decoration: none
}
&lt;/style&gt;</code></pre></p>
<p>你可以对上面的任何一项进行调整和修改，比如你想改成文字有下划线，只要将 text-decoration: none 改成 text-decoration: underline 就可以了。<br />
同时，有时候我们不需要对每一项都进行设定，只需要强调其中一项，那末只要写出这一项就可以了，其他的自然就是显示默认的属性。<br />
比如：<br />
<pre><code>&lt;style type=&quot;text/css&quot;&gt;
A:link {
color: red;
&lt;/style&gt;</code></pre><br />
上面设定的连接，除了颜色是红色的以外，其它的属性都是默认的。</p>


<p>相关问题：<ol><li><a href='http://www.asklaosan.com/laosan_answer_79.html' rel='bookmark' title='Permanent Link: 网页不同部分的连接颜色冲突，如何解决？'>网页不同部分的连接颜色冲突，如何解决？</a></li>
<li><a href='http://www.asklaosan.com/laosan_answer_291.html' rel='bookmark' title='Permanent Link: Security Tool 病毒的删除及清理方法'>Security Tool 病毒的删除及清理方法</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.asklaosan.com/laosan_answer_93.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

