如何摆脱我页面上这个奇怪的盒子?

时间:2013-08-24 15:52:47

标签: css validation firebug html

我网站link的背景中突然出现一个奇怪的框。

Image http://i1350.photobucket.com/albums/p769/Stonecold_Stone/page_zps0c289fe8.png

Firebug将其标识为<pre id="line1"><span>,它似乎也会导致某些validation errors,例如:

  

在此上下文中,元素div不允许作为元素跨度的子元素。 (抑制此子树中的更多错误。)

我认为通过编辑id line1可以轻松解决问题,但我搜索了CSS文件,并且没有名为“line1”的id。

2 个答案:

答案 0 :(得分:1)

这是因为 pre 标签检查下面的图片

你可以通过将它添加到你的风格来修复它

选项:1

#line1{
background: transparent!important;
border: 1px solid transparent!important;
}

或搜索该预标记并将其关闭

选项:2

<pre id=line1> </pre>

选项:3

转到第129行

上的style.css

并编辑

这是所有cooollll网页:-)

enter image description here

答案 1 :(得分:1)

位于http://cheapgamessales.com/wp-content/themes/Pronto/style.css?ver=3.6行:130属性background: #eee;将此背景颜色赋予元素<pre>