下面的代码是由其他人编写的。他没有使用div
架构,而是使用了tabular
架构。现在菜单选项结束后,页面的内容与菜单之间存在空间。我已经多次看过代码,检查了padding
或margin
的样式表,并查看了可能导致它的所有可能原因,但无法找到原因这个空间。我甚至在内容区域中尝试margin-top:-100px;
以查看它是否在上方移动但仍然没有移动。如果有人可以帮助我,我将非常感激。该网站是here。提前致谢。
这是它的代码,
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Lorem Epsum</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="style7.css" rel="stylesheet" type="text/css" />
<script language="Javascript">
if (document.images) {
button1 = new Image
button2 = new Image
button1.src = 'images/contact.png'
button2.src = 'images/contactR.png'
button3 = new Image
button4 = new Image
button3.src = 'images/investor.png'
button4.src = 'images/investorR.png'
button5 = new Image
button6 = new Image
button5.src = 'images/associate.png'
button6.src = 'images/associateR.png'
button7 = new Image
button8 = new Image
button7.src = 'images/services.png'
button8.src = 'images/servicesR.png'
button9 = new Image
button10 = new Image
button9.src = 'images/about.png'
button10.src = 'images/aboutR.png'
}
</script>
<script type="text/JavaScript">
function SendMemId(ID, Name)
{
var MyElement = document.getElementById("tester");
var MyName = document.getElementById("MyNames");
document.getElementById('MyNames').innerHTML = (Name);
MyElement.value = (ID);
return true;
}//-->
</script>
<script src="jquery.js" type="text/javascript"></script>
<script src="popup.js" type="text/javascript"></script>
<script src="js/jquery-1.4.2.js" type="text/javascript"></script>
<script src="js/cufon-yui.js" type="text/javascript"></script>
<script src="js/cufon-replace.js" type="text/javascript"></script>
<script src="js/standard_07_57_400.font.js" type="text/javascript"></script>
<script src="lite_validation.js"></script>
<script>
required.add('name','NOT_EMPTY','Full Name');
required.add('email','EMAIL','Email Address');
required.add('message','NOT_EMPTY','Your Message')
</script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="src/jquery.infieldlabel.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
<!--
$(function(){ $("label").inFieldLabels(); });
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
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 && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
</head>
<body id="page2" onLoad="MM_preloadImages('images/aboutR.png','images/servicesR.png','images/associateR.png','images/investorR.png','images/contactR.png')">
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="837"> </td>
</tr>
<tr>
<td valign="bottom" height="120" background="images/headsmall.png"><table width="100%" height="120" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="bottom"><div align="left"><a href="index.php"><img src="images/logo.png" alt="" width="210" height="110" style="border-style: none"/></a></div></td>
<td valign="bottom"><table border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><a href="about.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','images/aboutR.png',1)"><img src="images/about.png" width="115" height="50" border="0" id="Image6" /></a></td>
<td><a href="services.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','images/servicesR.png',1)"><img src="images/services.png" width="110" height="50" border="0" id="Image5" /></a></td>
<td><a href="associates.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','images/associateR.png',1)"><img src="images/associate.png" width="110" height="50" border="0" id="Image4" /></a></td>
<td><a href="investors.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','images/investorR.png',1)"><img src="images/investor.png" width="110" height="50" border="0" id="Image3" /></a></td>
<td><a href="contact.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','images/contactR.png',1)"><img src="images/contact.png" width="110" height="50" border="0" id="Image2" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<!--<tr>
<td height="6"></td>
</tr>-->
<tr>
<td background="images/bg_content.jpg" width="903px" height="477px"><table width="98%" border="0px" cellpadding="0" cellspacing="0">
<!-- <tr>
<td width="409"> </td>
<td width="476" height="26"> </td>
</tr>-->
<tr>
<td width="409" rowspan="5" valign="top"><table width="390" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td height="2"></td>
</tr>
<tr>
<td><img src="FinalPurpleLook/GlobalPic-AboutUS.png" alt="" width="381" height="237" /></td>
</tr>
</table> </td>
<td valign="top" class="heading">About us </td>
</tr>
<!-- <tr>
<td valign="top"> </td>
</tr>-->
<tr>
<td valign="top"class="textSimple">Lorem Epsum is an exclusive private organization engaged in a wide spectrum of global business endeavors from acquisition, development and ownership. Our core market's investments include commercial real estate, energy solutions, information technology, and health wellness.</td>
</tr>
<tr>
<td valign="top"> </td>
</tr>
<tr>
<td valign="top" class="textSimple">The philosophy of Lorem Empsum is based on honor, leadership, problem solving, project knowledge, sustainability and innovative ideas. Having powerful, influential connections, is a key element in success. With countless years of experience in several different industries we are proven to bring success with our connections and expertise knowledge.</td>
</tr>
<tr>
<!--<td> </td>
<td valign="top"> </td>
</tr>
<tr>
<td> </td>
<td valign="top"> </td>
</tr>
<tr>
<td> </td>-->
<td><p align="right" class="footer"> 9am Resource Agency LLC @ 2012 </p></td>
</tr>
</table></td>
</tr>
<tr></tr>
<tr>
<td></td>
</tr>
</table>
<script type="text/javascript"> Cufon.now(); </script>
</body>
</html>
答案 0 :(得分:1)
一些快速评论。
首先,我不知道为什么你有两个:
background="images/bg_content.jpg" width="903px" height="477px"
标题中的。有人不知道他们在做什么。
其次,我注意到内容加起来为430,但你的背景图像设置为477px,e..g,“background =”images / bg_content.jpg“width =”903px“height =”477px “ - 这可能是原因。
瑞克
答案 1 :(得分:1)
你真的需要重新考虑重新开始的选项,如果没有,请同时查看包含的Javascripts和Jqueries ,这可能会动态地进行更改强>你的CSS或样式属性..