css中连接前后的文本显示属性怎么写啊???急急!!

zhfmei 2003-11-22 06:18:23
设置超链接(link)为没有下画线(text-decoration),当鼠标在超链接上时字体大小为原来的150%,且有下画线。
...全文
101 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
wanghr100 2003-11-22
  • 打赏
  • 举报
回复
你要连接外部样式表??
这样可以.
<link rel="stylesheet" href="main.css" type="text/css">
netyvon 2003-11-22
  • 打赏
  • 举报
回复
<html><head>
<meta http-equiv="Content-type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
td,p,li,select,input,textarea {font-size:12px}
A.asd:link,A.asd:visited {text-decoration:none;color:#0000ff}
A.asd:active,A.asd:hover {text-decoration:none;color:#ff0000;font-size:16px}
</style>
</head>
<body bgcolor=#ffffff topmargin=5 marginheight=5>
<center>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td><a href=uri# class=asd target=_blank>文字链接</a></td></tr>
</table>
</center>
</body></html>
aotianlong 2003-11-22
  • 打赏
  • 举报
回复
外部的,去style就行了
zhfmei 2003-11-22
  • 打赏
  • 举报
回复
外部式工作表不能使用style标签吧
请高手再想想行吗??
谢谢
希默软件 2003-11-22
  • 打赏
  • 举报
回复
<style>
a:link {text-decration:none; font-size:12px}
a:active {text-decration:none; font-size:12px}
a:visited {text-decration:none; font-size:12px}
a:hover {text-decoration:underline; font-size:18px}
</style>

61,125

社区成员

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

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