求教css超链接样式的正确打开方式~~_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:45:10
Original
1334 people have browsed it

html css 超链接 样式

设置了所有超链接的鼠标悬浮状态和按下状态的颜色, 但是只显示下面设置的未点击和已点击的颜色 , 求大神~~~


代码如下:







回复讨论(解决方案)

给链接加 :hover ,:history 等等样式的时候该样式必须出现在默认样式里面。
比如,如果要 :hover的时候color:#aabbcc;的话, 之前需要先设置默认的颜色。比如:a {color:#666;}
也就是说:xxxx不会添加样式,而是只改样式。

给链接加 :hover ,:history 等等样式的时候该样式必须出现在默认样式里面。
比如,如果要 :hover的时候color:#aabbcc;的话, 之前需要先设置默认的颜色。比如:a {color:#666;}
也就是说:xxxx不会添加样式,而是只改样式。

经过不知道是不是真正理解你说的之后,
现在还是不会显示鼠标悬浮状态和按下状态的颜色
测试的浏览器是IE10
火狐和谷歌更是揪心 所有超链接都应用的默认样式
修改如下:



.my_table a:link{color:#0f0;}
.my_table a:visited{color:#f00;}
.my_table a:hover {color:#0f0;}
.my_table a:active {color:#00f;}

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!