我有一个非常困难的时间获取:链接和:访问以处理我的链接。我一直在网上搜索几个小时,并阅读了20多个同样问题的不同实例。奇怪的是,:悬停和:主动正在工作。到底是怎么回事?CSS:链接和:访问不起作用
下面是我的样式表的代码行:
H1 { text-align: center; width:1000px; font-size: 30pt; font-weight: bold; }
a.artlinks:link {color:#40C0FF; text-decoration: none; font-family: Cambria, Arial; }
a.artlinks:visited { color:#FF00FF; text-decoration: none; font-family: Cambria, Arial; }
a.artlinks:hover {color:#98D7F6; text-decoration: none; font-family: Cambria, Arial; }
a.artlinks:active {color:#FF0000; text-decoration: none; font-family: Cambria, Arial; }
,当我把它在我的.html代码:
<h1><a href="helloworld.html" class="artlinks">Hello World!</a></h1>
有没有人有一个解决方案,也更高效如何同时给出常用的a.artlinks参数?谢谢
使用正确的html! 'code'
helloworld
'code' – 2015-02-09 10:10:57link working for me。 - http://jsfiddle.net/n0qo7ybp/1/ – 2015-02-09 10:20:05
kasper为什么不告诉我如何实际插入html标签,因为当我写出我的帖子时,它显示的是字面单词“hello world”而不是代码 – 2015-02-09 20:03:11