帮忙!!关于SOHU邮箱里面的按钮~

lvlvlvlylyly 2003-10-24 01:52:35






<html>


<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>目录:邮件清单</title>



</head>

<body bgcolor="" text="#000000" leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>





<SCRIPT>
function msover(){
event.srcElement.style.backgroundColor="#ccffff";
event.srcElement.style.cursor = "hand";
}

function msout(){
event.srcElement.style.backgroundColor="#FFF6DC";
event.srcElement.style.cursor = "auto";
}
</SCRIPT>
<script language=javascript><!--
function showTip() {
tip.style.visibility="visible";
setTimeout("tip.style.visibility='hidden'",4000)
}
function showTip1() {
tip.style.visibility="visible";
setTimeout("tip.style.visibility='hidden'",2000)
}
function showTip2() {
tip.style.visibility="visible";
}
--></script>


<DIV align=center id=tip style="position: absolute; height: 28; width: 142; visibility: hidden; left: 185; top: 370" onMouseOut="showTip1();" onMouseOver="showTip2();" onMouseMove="showTip2();">
</DIV>



<p>
<br>
<table border=0 cellspacing=0 cellpadding=0 width=590 bgcolor="#F0F0F0" >
<tr>
<td nowrap> <input type=button value="永久删除选中文件" class=button onclick="clickremove()" onmouseover="msover();" onmouseout="msout();">  <input type=button value="删除选中文件" class=button onmouseover="msover();" onmouseout="msout();" onclick="clickdelete()">
<p>     </p>
</td>
</tr>
</table>
<table border=0 cellspacing=0 cellpadding=0 width=588 bgcolor="#F0F0F0" >
<tr>
<td nowrap width="582">
<p> <input type=button value="永久删除选中文件" class=button onclick="clickremove()" onmouseover="msover();" onmouseout="msout();">  <input type=button value="删除选中文件" class=button onclick="clickdelete()" onmouseover="msover();" onmouseout="msout();"></p>
 </td>
</tr>
</table>
<br>

</body>


</html>

这几个按钮都是取自SOHU的邮箱,请帮忙运行一下,会发现不是平的,而在邮箱里面的是平的,请问是如何实现的。当然,SOHU邮箱里面的HTML还连接了几个JS,我把无关的代码都去掉了。
...全文
211 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
fyzeng 2003-10-24
  • 打赏
  • 举报
回复
你的class=button根本就没有这个样式文件怎么会有效果呢?
加个样式看看,比喻说再加上这点代码
<style type="text/css">
.button
{border:1px solid #808080;background-color:#FFFFCC}
</style>

ydr2002 2003-10-24
  • 打赏
  • 举报
回复
因为它用了CSS设置按钮的样式,你复职出来的环境没有含CSS,所以显示风格不一样啦

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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