在ie7中格式化和查看措辞的最佳方式

时间:2011-07-15 08:16:52

标签: html

我有一个非常冗长的T& C文档...因为现在它在FF和chrome中看起来很完美:

<div id='div_longgray_gradient2'>
<table class='table_format_content_rbc' border='0' >
<tr>
<td colspan='3' align='ceter'> 
  <span class='spn_big_lightblue_rbc'>TERMS AND CONDITIONS</span>
</td>   
</tr>
<tr>        
<td colspan='3' align='left'> 
        &nbsp;<br/>
</td>   
</tr>
<tr>
<td colspan='left'> 
By entering this site you confirm that you are at least 16 years of age.
    <br/>
<pre style='font-family:Arial, sans-serif; width:auto; white-space:pre-wrap;'>
For purposes of this agreement you are identified as ‘The Member’.

By entering this site and confirming that you have read and understood the terms and 
and so it goes on and and on and on.

And many more sentences.
</pre>
</td>

       

如何在不执行&lt; p&gt;的情况下为IE7执行相同的操作和&lt; br /&gt;每句话?正如它现在所示,它只是将整个事物作为一条连续线!

1 个答案:

答案 0 :(得分:0)

您提供的HTML格式不是很好,最好丢失<pre>代码并将<br /><p>代码放在所需位置。 HTML的整个概念是它是标记语言,应该用于描述文档的呈现方式。如果你必须沿着<pre>标记路线走,那么你可能最好看看你在文档顶部使用什么dtd以及IE渲染文档的渲染模式(如果你有IE8 +按F12)。

由于

尼古拉斯