忽略td类中的第二个br标记 [英] The second br tag within td class is ignored

查看:126
本文介绍了忽略td类中的第二个br标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这真的很奇怪,仅在IE 6上出现问题,但不是

Firefox。


这是代码:


< td colspan = 3 class = allmessagesheader>图片来自

欧洲< br>< br>< br> 2000年12月10日< / td>


看起来非常基本,对吧?好吧,第二个< br>标签中有

被忽略。如果我只有一个< br>标签,它表现得像往常一样。第二个

< br>标签什么都不做,如果我添加第三个< br>标签,它的行为类似于

有两个,跳过一行空格(这就是我想要的)。

真的很奇怪。如果我删除了类调用,它工作正常,如果我使用

一个不同的类,它工作正常。所以,必须是班级。这个班级必须说什么?$ / b

td.allmessagesheader {

颜色:#ffffff;

background-color:#003366;

字体:100%verdana,arial,sans-serif;

字体大小:16px;

line-height:18px;

字母间距:0.2em;

text-align:center;

}

因此,此代码中的内容导致< br>标签不做他们的东西?


我和这个代码和类有同样的问题:


< table width = 500>< tr>< td class = commententry>

< font class = ajstyle>

这是所有已发布消息的列表所有

画廊。

要跳转到特定的照片,只需点击它。

< / font>< br>< br>< br>< font class = ajstyle>

请注意,此页面仅显示包含实时评论的照片。

< / font>

< / td>< / tr>< / table>


我必须逃避字体类ajstyle在< br>之前标签按顺序

为他们* all *来解释。 ajstyle课程是:


font.ajstyle {

字体:90%verdana,arial,sans-serif;

字母 - 间距:0.2em;

颜色:#BEF5F3;

}


这真的很奇怪。


我希望世界使用Firefox。


帮助赞赏。

Jaxon

This is really weird, and is a problem only on IE 6 for me, but not
Firefox.

Here is the code:

<td colspan=3 class=allmessagesheader>Pictures from
Europe<br><br><br>December 10, 2000</td>

Looks pretty basic, right? Well, the second <br> tag in there is
ignored. If I have only one <br> tag, it behaves as usual. The second
<br> tag does nothing, and if I add the third <br> tag, it behaves like
there are two, skipping a line of blank space (which is what I want).
Really weird. If I remove the class call, it works fine, and if I use
a different class, it works fine. So, must be the class. What does
the class have to say?

td.allmessagesheader {
color: #ffffff;
background-color: #003366;
font: 100% verdana, arial, sans-serif;
font-size: 16px;
line-height: 18px;
letter-spacing: 0.2em;
text-align: center;
}
So what in this code is causing <br> tags to not do their stuff?

I''m having the same exact problem with this code and class:

<table width=500><tr><td class=commententry>
<font class=ajstyle>
This is a list of all the posted messages for all pictures in all
galleries.
To jump to a particular photo, just click on it.
</font><br><br><br><font class=ajstyle>
Note that only photos with live comments are shown on this page.
</font>
</td></tr></table>

I have to escape the font class "ajstyle" before the <br> tags in order
for them *all* to be interpreted. The ajstyle class is:

font.ajstyle {
font: 90% verdana, arial, sans-serif;
letter-spacing: 0.2em;
color: #BEF5F3;
}

This is really weird.

I wish the world used Firefox.

Help appreciated.
Jaxon

推荐答案

Jaxon Bridge写道:
Jaxon Bridge wrote:
这真的很奇怪,而且仅在IE 6上出现问题,但不是火狐。

以下是代码:

< td colspan = 3 class = allmessagesheader>图片来自
欧洲< br>< br>< br> 12月10日,2000< / td>
This is really weird, and is a problem only on IE 6 for me, but not
Firefox.

Here is the code:

<td colspan=3 class=allmessagesheader>Pictures from
Europe<br><br><br>December 10, 2000</td>




使用< br>& nbsp;< br>& nbsp;< br> 2000年12月10日


CA Upsdel​​l>写道:
C A Upsdell > wrote:
Jaxon Bridge写道:
Jaxon Bridge wrote:
< td colspan = 3 class = allmessagesheader>图片来自
Europe< br>< br>< br> 2000年12月10日< / td>
<td colspan=3 class=allmessagesheader>Pictures from
Europe<br><br><br>December 10, 2000</td>



使用< br>& nbsp;< br>& nbsp;< br> 2000年12月10日


Use <br>&nbsp;<br>&nbsp;<br>December 10, 2000




OP在样式表新闻组中询问。为什么不告诉他有关保证金的信息

或填充?

-

Johannes Koch

in te domine speravi;非永久性的东西。

(Te Deum,4分。)



The OP asked in a stylesheets news group. Why not tell him about margin
or padding?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Johannes Koch写道:
Johannes Koch wrote:
CA Upsdel​​l >写道:
C A Upsdell > wrote:
Jaxon Bridge写道:
Jaxon Bridge wrote:
< td colspan = 3 class = allmessagesheader>图片来自
Europe< br> < br>< br> 2000年12月10日< / td>
<td colspan=3 class=allmessagesheader>Pictures from
Europe<br><br><br>December 10, 2000</td>



使用< br>& nbsp;< br>& nbsp;< br> 12月10,2000



Use <br>&nbsp;<br>&nbsp;<br>December 10, 2000



OP在样式表新闻组中询问。为什么不告诉他有关边距
或填充?


The OP asked in a stylesheets news group. Why not tell him about margin
or padding?




OP的具体问题不是CSS问题。



The OP''s specific problem is not a CSS problem.


这篇关于忽略td类中的第二个br标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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