[求助]为什么我的字体是竖排的?我要横排啊!急!
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="head.ascx.cs" Inherits="MyControls_head" %><style>
<!--
.menu
{
background-color:blue;
width:118;height:15;
color:white;
text-align:center;
font-size:12pt;
font-weight:bolder;
}
.submenu
{
color:black;
position:absolute;
top:180;
width:118;
background-color:lightyellow;width:118;
font-size:10pt:
}
-->
</style>
<table style="width: 778px; font-size: 11pt;">
<tr>
<td background="../Images/OA_head.jpg" style="width: 100px; height: 165px">
</td>
</tr>
<tr>
<td style="width: 100px; height: 2px;">
<script >
var cm=null;
document.onclick =new Function("Show(null)")
function GetPos(el,sProp)
{
var Pos=0
while(el!=null)
{
Pos+=el["offset"+sProp]
el=el.offsetParent
}
return Pos
}
function Show(el,m)
{
if(m)
{
m.style.display='';
m.style.pixelleft=GetPos(el,"Left")
m.style.pixelTop=GetPos(el,"Top")+el.offsetHeight
}
if((m!=cm)&&(cm))
cm.style.display='none'
cm=m
}
</script>
<table border =0 style="width: 98%">
<tbody >
<tr width :99%>
<td class =menu id=d1 onmouseover=Show(this,ds1); style="height: 50px;width :118px;"><div class =submenu id=ds1 style="display :none; "><br >
<a href ="../Personnel/PersonChange.aspx">修改信息</a><br />
<a href ="../Personnel/Reward.aspx">奖惩信息</a><br />
<a href ="../Personnel/AddPersonnel.aspx">添加删除</a><br >
<a href ="../Personnel/ClientRegister.aspx">注册客户</a><br />
<a href ="../Personnel/PersonChange.aspx">人事调动</a><br >
</div>员工信息
</td>
<td class =menu id=d2 onmouseover=Show(this,ds2); style="height: 50px; width :118px;"><div class =submenu id=ds2 style="display :none; "><br >
<a href="../List/List.aspx">新订单</a><br >
</div>订单信息
</td>
<td class =menu id=d4 onmouseover=Show(this,ds4); style="height: 50px; width :118px;"><div class =submenu id=ds4 style="display :none; "><br >
<a href ="../Personnel/AddPersonnel.aspx">添加</a><br >
<a href ="../Personnel/PersonChange.aspx">仓库</a><br >
</div>发货信息
</td>
</tr>
</tbody>
</table>
<table border=0>
<tbody >
</tbody>
</table>
</td>
</tr>
</table>
以上是我的代码,不知为什么,他每个显示出来的,都是不能以一行一个出来,全变成一行就一个字,我一个连接变成几行了,那些字不能横排,全变成竖排了,还有就是,为什么我的鼠标移开时,弹出来的信息并不会消失.哪位大哥能帮帮我啊,急啊.小弟并不太会JS,谢谢了.
[此贴子已经被作者于2007-1-17 11:14:43编辑过]