|
蓝森林 http://www.lslnet.com 2006年8月25日 8:28
请问在里添加什么代码,才能去掉下划线?
[code]
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
<style>
.style1 {color: #FFFFFF}
</style>
<body topmargin="0">
<div id="Layer1" style="position:absolute; left:501px; top:4px; width:345px; height:27px; z-index:1">
<div align="right" class="style1"><a href="http://www.freewebs.com/" class="style1">个人资料</a>-设置-改口令-重新登陆-退出-强力搜索</div>
</div>
<div align="center"><img src="../assent_rock/1036338.jpg" width="800" height="90"></div>
</body>
[/code] |
去掉下划线~~?超链接的~?
页面设置>链接>链接样式~ |
text-decoration:none;
如:a{font-family: "宋体";font-size: 12px;color: #666666;text-decoration: none;}
是去掉超链接下划线的 |
加一个这样的连接就好了。。。。。。。
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
-->
</style> |
定义一下CSS样式就可以了。 |
谢谢几位楼主帮助!已解决了:
[code]
<style>
.style1 {text-decoration: none}
.style1 {color: #FFFFFF}
</style>
[/code]
:D :D |
不能同时存在两个定义.style1 {},这么定义是错的:
<style>
.style1 {text-decoration: none}
.style1 {color: #FFFFFF}
</style>
下面这个才对:
<style>
.style1 {color: #FFFFFF;text-decoration: none}
</style>
|
谢谢,又学到一招。 |
marvellous在上个帖子中说
嗯,那我用
[code]<style>
.style1 {text-decoration: none}
.style1 {color: #FFFFFF}
</style>
[/code]
也能正常显示我所需要的效果啊,不过你的建议也不错! |
|