2011-04-11 66 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> 
相關問題