幻影< br>浏览器在< table>之前呈现的标记标签 [英] Phantom <br> tag rendered by browsers prior to <table> tag

查看:70
本文介绍了幻影< br>浏览器在< table>之前呈现的标记标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

浏览器似乎正在渲染< br> < table>之前的标签。应该将整个页面呈现在同一张表格中,但是< br>会创建一个令人讨厌的空格。

The browser seems to be rendering a <br> tag prior to my <table>. The entire page is supposed to be rendered in the same table, but there's an irritating whitespace being created by a <br> tag that isn't in the code.

代码如下所示,包括使用View Source时的代码:

The code looks like this, including when using View Source:

<body>
   <div class='container'>
      <table cellpadding="0" cellspacing="0" width="978px" style="border:2px solid blue;">

但是该页面在浏览器中有一个肥大的空间,当我使用 inspect element时显示为在Chrome中:

But the page has a fat space in the browser, and appears like this when I use "inspect element" in Chrome:

<body>
   <div class='container'>
      <br>
      <table cellpadding="0" cellspacing="0" width="978px" style="border:2px solid blue;">

我已经仔细研究了CSS和代码,但无法弄清楚。

I've pored over my CSS and my code and I can't figure it out.

让我知道是否需要在某个地方更具体。

Let me know if I need to be more specific somewhere.

推荐答案

由于您的页面上没有任何脚本,所以我唯一想到的就是它正在被注入,因为您的代码无效。尝试修复那里的错误,看看它是否可以解决您的问题。

Since you don't have any scripts on the page, the only thing I can think of is that it's being injected because your code isn't valid. Try fixing the errors there and see if it solves your problem.

这篇关于幻影&lt; br&gt;浏览器在&lt; table&gt;之前呈现的标记标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆