Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 将表固定与导航对齐_Html - Fatal编程技术网

Html 将表固定与导航对齐

Html 将表固定与导航对齐,html,Html,我有这个: <html> <head> <link rel="icon" type="image/ico" href="../images/logo.ico" /> <title> About Dideban </title> </head> <body> <table cellpadding="0" align="center"> <tr> <td> <img src

我有这个:

 <html>
<head>
<link rel="icon" type="image/ico" href="../images/logo.ico" />
<title> About Dideban </title>
</head>
<body>
<table cellpadding="0" align="center">
<tr>
<td> <img src="../images/header.jpg" width="800" align="center"  /> </td>
</tr>
</table>


<table border="1" cellpadding="0" style="font-family:tahoma; font-size:12; margin-left:130; margin-bottom:200">
<tr>
<td >
<br>
<b> txt </b> txt txt
<br>
txttxttxttxttxttxt
<br>
txttxttxttxttxt
<br>
txttxttxt
<br>
txttxttxttxttxttxttxttxt
<b> Snort </b>.
<br><br>
<b> Dideban Team </b>
<li> <font color="blue"> Manager: </font>&nbsp;&nbsp; Dr. Masood Hashemi</li>
<li> <font color="blue"> Designer&Developer:</font>txttxt</li>
<li> <font color="blue"> Supporter:</font>txttxt</li>
<li> <font color="blue"> Developer:</font> txttxt</li>
<li> <font color="blue"> Designer:</font> &nbsp;&nbsp; txttxttxt</li>
<br>

<!--<input class="but" type="button" value="close" onclick="window.close();" style="margin-top:200">-->

</td>
</tr>
</table>
</body>
<table cellpadding="0" align="center">
<tr>
<td><img src="../images/footer.jpg" width="800" align="center"  /> </td>
</tr>
</table>

</html>

关于迪德班

文本
TXTXTXTXTXTXTXTXT
TXTXTXTXTXTXT
TXTXTXT
TXTXTXTXTXTXTXTXTXTXTXT 用鼻子哼哼

迪德班队
  • 经理:马苏德·哈希米博士
  • 设计者和开发者:TXTXT
  • 支持者:TXTXT
  • 开发者:TXTXT
  • 设计者:TXTXTXT

  • 我的问题是,当我看到它的时候,桌子在我上面图片的中间和底部 我希望桌子在左手边,但当我尝试align=“left”时 在表格标签中没有任何更改我能做什么? 在我的linux系统中,它显示的是正确的,但在XP中它不是固定的

    提前感谢。

    尝试在正文标记中插入“标题”表。格式化仅适用于其中的表。head标记不适用于您的网页标题。它是web浏览器的标题,用于提供有关页面等的信息-

    这应该是可行的:

    <html>
    <head />
    <body>
     <table cellpadding="0" align="center">
      <tr>
       <td> <img src="../images/header.jpg" width="800" align="center" /> </td>
      </tr>
     </table>
     <table border="1" cellpadding="0" style="font-family:tahoma; font-size:12px; margin-left:130px; margin-bottom:200px">
      <tr>
       <td >
        <br>
        <b> Sometext </b> Sometext
       </td>
      </tr>
     </table>
     <table cellpadding="0" align="center">
      <tr>
       <td><img src="../images/footer.jpg" width="800" align="center"  /> </td>
      </tr>
     </table>
    </body>
    </html>
    
    
    
    Sometext Sometext


    经过这次编辑,我什么都不懂。一切看起来都很好。请记住,内容表中有
    左边距:130
    。这就是为什么它没有粘在页面的左侧。是这样吗?

    浏览器以不同方式呈现页面时出现的问题是由代码中的错误引起的。标记是不正确的,浏览器很难猜测您实际希望他们做什么

    代码中的一些问题包括:

    • 标签没有
      父项
    • 样式声明无效:值还应包括度量单位(左边距:130px;)
    与其复制和粘贴互联网上的不同解决方案,不如慢慢来学习HTML的基础知识。根据今天的标准,web上有许多教程实际上已经过时(字体标记在HTML4中已被弃用,应该用CSS样式替换),因此您在阅读资源时应该小心

    这是学习HTML及其相关内容(CSS和JS)的绝佳资源:

    您还可以使用以下方法验证代码:


    如果你不花时间学习正确的网页编码方法,你将很难找到愿意帮助你的开发人员。

    为什么要在表格之间放置正文标签。因为图像在标题中,我认为你误解了标题标签的部分。直到它不在正文中,格式化才起作用。我认为html不合适。页眉和页脚表也包含在正文中。我把正文放在了上面,我现在没有页眉标记,但没有任何更改。现在告诉我另一个想法,我试着告诉你我在评论部分告诉过你MoysheWell,你告诉过你没有页眉标记,但经过编辑后,您似乎拥有它。你编辑得太频繁太多了。张贴之前修改你的问题并考虑要点。不要生气,对不起!我只是想跟上那些告诉我我不生气的程序员。我很困惑;)1.代码中有三个表,我真的不知道哪一个是问题所在。2.你编辑的太多太频繁了,以至于我们无法理解你的问题。3.用钥匙说话不是愤怒,而是帮助你提出好问题的意愿;)还有,你看过我的编辑吗?也许这对你有帮助。