a:访问优先级:错误或功能 [英] a:visited priority : a bug or a feature

查看:79
本文介绍了a:访问优先级:错误或功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

a:active {color:#FF0000;文字装饰:下划线}

/ * a:访问过的颜色规则优先级高于

a:如果从本地驱动器查看,则悬停:

所以访问过的链接不会悬停。

要修复此错误(功能?),应该使用

附加!重要说明:* /

a:悬停{color:#FF0000!important; text-decoration:underline}

a:link {color:#0000FF; text-decoration:underline}

a:visited {color:#800080; ; text-decoration:underline}

我用了一年的这个修复程序并且好奇:它是一个bug还是

被认为是一个记录的功能?

a:active { color: #FF0000; text-decoration: underline}
/* a:visited color rule has higher priority over
a:hover if viewed from your local drive,
so visited links will not "hover".
To fix this bug (feature?) one should use
additional !important instruction: */
a:hover { color: #FF0000 !important; text-decoration: underline}
a:link { color: #0000FF; text-decoration: underline}
a:visited { color: #800080; ; text-decoration: underline}
I used this fix for year and just got curious: is it a bug or
considered to be a documented feature?

推荐答案

VK写道:
VK wrote:
a:active {color:#FF0000;文本修饰:下划线}
/ * a:访问过的颜色规则优先于
a:如果从本地驱动器查看,则悬停,
所以访问过的链接不会悬停。<为了解决这个问题(功能?),应该使用
其他!重要说明:* /
a:悬停{颜色:#FF0000!important; text-decoration:underline}
a:link {color:#0000FF; text-decoration:underline}
a:visited {color:#800080; ;文字装饰:下划线}

我用了一年的这个修复,只是好奇:它是一个bug还是
被认为是一个记录的功能?
a:active { color: #FF0000; text-decoration: underline}
/* a:visited color rule has higher priority over
a:hover if viewed from your local drive,
so visited links will not "hover".
To fix this bug (feature?) one should use
additional !important instruction: */
a:hover { color: #FF0000 !important; text-decoration: underline}
a:link { color: #0000FF; text-decoration: underline}
a:visited { color: #800080; ; text-decoration: underline}

I used this fix for year and just got curious: is it a bug or
considered to be a documented feature?




如何按顺序排列它们?

喜欢:


a:link

a:访问

a:焦点

a:悬停

a:活跃




没有错误 - 无需修复:-)

-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?£。 O resto ?? crisfeito。

- Renato Russo -



How about just putting them in the right order?
Like:

a:link
a:visited
a:focus
a:hover
a:active
?

No bug - no fix needed :-)

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -




Els写道:

Els wrote:
VK写道:
VK wrote:
a:active {color:#FF0000;文本修饰:下划线}
/ * a:访问过的颜色规则优先于
a:如果从本地驱动器查看,则悬停,
所以访问过的链接不会悬停。<为了解决这个问题(功能?),应该使用
其他!重要说明:* /
a:悬停{颜色:#FF0000!important; text-decoration:underline}
a:link {color:#0000FF; text-decoration:underline}
a:visited {color:#800080; ;文字装饰:下划线}

我用了一年的这个修复,只是好奇:它是一个bug还是
被认为是一个记录的功能?
a:active { color: #FF0000; text-decoration: underline}
/* a:visited color rule has higher priority over
a:hover if viewed from your local drive,
so visited links will not "hover".
To fix this bug (feature?) one should use
additional !important instruction: */
a:hover { color: #FF0000 !important; text-decoration: underline}
a:link { color: #0000FF; text-decoration: underline}
a:visited { color: #800080; ; text-decoration: underline}

I used this fix for year and just got curious: is it a bug or
considered to be a documented feature?


<只是把它们按正确的顺序怎么样?
喜欢:

a:链接
a:访问
a:重点
a:悬停
a:有效



How about just putting them in the right order?
Like:

a:link
a:visited
a:focus
a:hover
a:active



正确的顺序是什么意思?按字母顺序它应该是活动的,

焦点,悬停,链接,访问。逻辑上(从州到州)它应该

链接,悬停,聚焦,活动,访问。


你的顺序是什么样的权利'已经指出了吗?


为什么这个序列对链接颜色样式优先级有影响?


What do you mean by "right order"? Alphabetically it should be active,
focus, hover, link, visited. Logically (from state to state)it should
be link, hover, focus, active, visited.

What''s so right in the order you''ve indicated?

And why this sequence has effect on link color style priority?


VK写道:
Els写道:
VK写道:
VK wrote:
a:active {color:#FF0000;文本修饰:下划线}
/ * a:访问过的颜色规则优先于
a:如果从本地驱动器查看,则悬停,
所以访问过的链接不会悬停。<为了解决这个问题(功能?),应该使用
其他!重要说明:* /
a:悬停{颜色:#FF0000!important; text-decoration:underline}
a:link {color:#0000FF; text-decoration:underline}
a:visited {color:#800080; ; text-decoration:underline}

我用了一年的这个修复程序,只是好奇:它是一个bug还是
被认为是一个记录的功能?
如何放置它们在正确的顺序?
喜欢:
一个:链接
一个:访问了一个:关注一个:a:悬停
一个:活跃的
a:active { color: #FF0000; text-decoration: underline}
/* a:visited color rule has higher priority over
a:hover if viewed from your local drive,
so visited links will not "hover".
To fix this bug (feature?) one should use
additional !important instruction: */
a:hover { color: #FF0000 !important; text-decoration: underline}
a:link { color: #0000FF; text-decoration: underline}
a:visited { color: #800080; ; text-decoration: underline}

I used this fix for year and just got curious: is it a bug or
considered to be a documented feature?
How about just putting them in the right order?
Like:

a:link
a:visited
a:focus
a:hover
a:active



正确的顺序是什么意思?



What do you mean by "right order"?




你想要的效果的正确顺序 - 会发生什么成为大多数人想要的

效果。

按字母顺序它应该是活跃的,
焦点,悬停,链接,访问。


我曾经只见过某人按字母顺序排列他们的风格规则,并且相信

我,它对显示的页面影响不大。

逻辑上(从州到州)它应该是链接,悬停,聚焦,活动,访问。


按照该顺序,您假设没有人在所访问的链接上盘旋。在

的事实上,它会产生你想要击败的不良影响。

你指示的顺序是什么?


你试过吗?

为什么这个序列会影响链接颜色样式优先?



The right order for the effect you want - which happens to be the
effect most people want.
Alphabetically it should be active,
focus, hover, link, visited.
I''ve only once seen someone alphabetize their style rules, and believe
me, it did not quite have a good effect on the displayed page.
Logically (from state to state)it should
be link, hover, focus, active, visited.
In that order, you are assuming no one hovers over visited links. In
fact, it makes for the unwanted effect you are trying to beat.
What''s so right in the order you''ve indicated?
Did you try it?
And why this sequence has effect on link color style priority?




由于样式规则的级联效应。如果两个规则同样具体,那么最后一个规则就有效。

拉斯维加斯(森林)有动物。

链接 - 访问过 - 焦点 - 悬停 - 活跃。


试一试。


-

Els http://locusmeus.com/

Sonhos vem。 Sonhos v?£。 O resto ??不好的。

- Renato Russo -



Because of the cascading effect of style rules. If two rules are
equally specific, the last one in line has effect.
Las Vegas (Forest) Has Animals.
link - visited - focus - hover - active.

Just try it.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?£o. O resto ?? imperfeito.
- Renato Russo -


这篇关于a:访问优先级:错误或功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆