2011-04-11 63 views
0

我的工作中有jsp页面支柱申请一个换行符。在IE 7中,标记内的长句子会创建换行符。任何想法可能是什么问题?​​表格单元格内标签创建于IE 7

表是用来显示记录。当没有记录时,我显示这个句子。

<tr><td colspan="6">No tags are currently stored in the database for this component</td></tr> 

这里是CSS代码

table.outer_1 td { 

    border-right: 2px solid #CCCCCC; 
    border-bottom: 2px solid #CCCCCC; 
    border-left: 2px solid #CCCCCC; 
    border-top: 2px solid #CCCCCC; 
    padding:4px; 
    max-width:250px; 
    width:expression(250 + "px"); 
    word-wrap:break-word; 
} 

我觉得这是有width:expression(250 + "px");

+0

@imran:在源代码中,您是否看到'
'标记? – Shaoz 2011-04-11 10:24:33

+0

没有
标签。 – 2011-04-11 10:42:55

+2

如果您想要别人帮助您,请发布您的代码。 – easwee 2011-04-11 10:48:13

回答

0

问题编写这些代码我的问题解决之后。

<!--[if lte IE 8]> 
    <style type="text/css" media="screen"> 
      table.outer_1 td { width:expression(450 + "px") !important; } 
    </style> 
<![endif]--> 

<tr><td colspan="6">No tags are currently stored in the SABMiller database for this component</td></tr> 
相关问题