页面被撑开了
<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隐藏层就没问题了,怎么修改呀 相关推荐
web开发光标停在文字最后 防止前台页面撑开
光标停在文字最后,防止前台页面撑开,消除图像工具,隐藏在状态栏里出现的LINK信息栏,
网页表格或div层在网页中被撑开解决之道
在我们设计网页的时候,总会遇到一些不愉快的事情,最常见的莫过于在后台添加内容后才发现显示的页面被撑开,导致网页极度不美观。以前大家基本上都是设计表格,网上自然不少对于的解决方法,如今还有div css标准设计,很少看到相关好的方法,现在潇湘在线把平时找到的防止
表格单元格td设置宽度无效始终有内部的内容撑开
在做table页面时,有时对td设置的宽度是无效的,td的宽度始终有内部的内容撑开,可以设置padding,但直接设置width却无效,下面我们来具体看下这个示例: 复制代码代码如下: <div> <table border=”1px”> <tr> <td width=”100px” xss=removed>1000800</td> <td>1000000</td> <td>1000000</td> </tr> <tr> <td>1000000</td> <td>10000300</td> <td>1000000</td> </tr> </table
子Div使用Float后撑开父Div的几种方法
子Div撑开父Div,可以设置父元素overflow以及zoom,或者是父元素也是设置浮动效果,也可以在添加一个子元素,并设置clear样式
css实现不再让内容把td撑开的常用解决方法
复制代码代码如下: <style type=”text/css”> table {width:600px;table-layout:fixed;} td {white-space:nowrap;overflow:hidden;word-break:keep-all;text-overflow:ellipsis} </style> <table border=1> <tr> <td width=”30%”>dd</td> <td>ddddddddddddddddddddddddddddddfsljdflsajufiajklsjadflkjsalkfdjdsklajdflksajflksajfd


