如何重新定义超连接的样式?

lastest 2003-09-11 05:04:10
我在原页面模板中用css定义好了超连接的样式,但是在新生成的文件中的要使得新的一部分的超连接的样式是另外一种,该如何定义啊?也就是说在新页面中的新东西和模板生成的超连接是两种风格。
...全文
32 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
daobeilixiao 2003-10-05
  • 打赏
  • 举报
回复
不要把
A:link{cursor:hand;color:black;text-decoration:underline}
A:visited{cursor:hand;color:black;text-decoration:underline}
A:hover{cursor:hand;color:red;text-decoration:none}
的顺序弄错了,假如顺序不对,在IE上将看不都效果!!!
wind0209 2003-09-11
  • 打赏
  • 举报
回复
A:link{cursor:hand;color:black;text-decoration:underline}
A:visited{cursor:hand;color:black;text-decoration:underline}
A:hover{cursor:hand;color:red;text-decoration:none}
A.a01:link{cursor:hand;color:white;text-decoration:none}
A.a01:visited{cursor:hand;color:white;text-decoration:none}
A.a01:hover{cursor:hand;color:red;text-decoration:underline}

默认的会调用 A里定义的CSS,你需要用a01的话,直接在<a href="#" class="a01">asdasd</a>
tsstudio 2003-09-11
  • 打赏
  • 举报
回复
是另外一种风格的超链接都该成这样<a class=newstyle href="">
然后指定其风格
<style>
.newstyle{}
.newstyle.hover{}
.newstyle.link{}
</style>
其中{}内的内容楼主自己填写吧。你应该会的吧

记得把分全给我啊
shadesert 2003-09-11
  • 打赏
  • 举报
回复
可不可以在新生成的页面里面重新定义啊?
这样或许能解决。

61,110

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧