页面被撑开了

gxq323 2009-08-15 03:21:44

<TD vAlign=top width=58><DIV id=menu01 style="POSITION: absolute">
<DIV id=sub onMouseOut="MM_showHideLayers('sub','','hide')"
onmouseover="MM_showHideLayers('sub','','show')"
style="HEIGHT: 46px; LEFT: 7px; POSITION: absolute; TOP: 55px; VISIBILITY: hidden; WIDTH: 90px; Z-INDEX: 11">

<TABLE border=0 cellPadding=4 cellSpacing=1 class=46C92F
width=120>

<TBODY>
<TR bgColor=#fafef4>
<TD align="center">公司简介</TD>
</TR>
<TR bgColor=#fafef4>
<TD align="center">企业理念</TD>
</TR>
<TR bgColor=#fafef4>
<TD align="center">组织架构</TD>
</TR>
<TR bgColor=#fafef4>

<TD align="center">公司荣誉</TD></TR>
<TR bgColor=#fafef4>
<TD align="center">企业资质</TD>
</TR>
<TR bgColor=#fafef4>
<TD align="center">员工风采</TD>
</TR>
</TBODY></TABLE></DIV></DIV><A
class=menu href="about.asp"
onmouseout="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','hide','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')"
onmouseover="MM_showHideLayers('yycq','','hide','logo','','hide','ring','','hide','sub','','show','mo','','hide','brand','','hide','feature','','hide','product','','hide','help','','hide')"><IMG
height=57 src="img/sy_dh2.jpg" width=58
border=0></A> </TD>


function MM_findObj(n, d) { //v4.0
var p,i,x;if(!d) d=document;if((p=n.indexOf("?"))>0 && parent.frames.length){
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n]) && d.all) x=d.all[n]; for (i=0;!x && i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x && d.layers && i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); return x;}
function MM_showHideLayers() { //v3.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
obj.visibility=v; }}
//showhidelayer

function mOvr(src, cOvr)
{if (!src.contains(event.fromElement)) {src.style.cursor = "default";src.bgColor = cOvr;}}
function mOut(src, cOut)
{if (!src.contains(event.toElement)) {src.style.cursor = "default";src.bgColor = cOut;}}
为什么页面被撑开了,去掉那个div隐藏层就没问题了,怎么修改呀
...全文
199 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
liveinchengdu 2009-08-16
  • 打赏
  • 举报
回复
不喜欢读别人的代码,提示下:
限定高度和宽度,overflow:hidden
注意有border的话 内层要比外层小2px
padding-bottom和padding-top在IE6下会撑高div高度
gxq323 2009-08-15
  • 打赏
  • 举报
回复
标签id肯定不会重复的

61,129

社区成员

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

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