2012-04-20 3 views
1

私は<span>をポップアップディビジョン内のアドレス行を表示するために使用しています。すべてのブラウザでうまく動作しますが、IE 8でのみ機能しますポップアップdivスパンタグ内のIE 8のテキストがdivの外に出る

ポップアップdiv内のすべての内容は表を使用して表示され、tdには幅が割り当てられます。 IE8

|------------------|<--DIV message 
|line1<--td1  | 
|line2<--td1  | 
|Here it goes the a|ddress and it goes outside<--<tr><td>span</td></tr> 
|     | 
|__________________| 

内の他のブラウザで

OUTPUT

|------------------|<--DIV message 
|line1<--td1  | 
|line2<--td1  | 
|Here it goes the a|<--<tr><td>span</td></tr> 
|ddress not goes | 
| outside   | 
|__________________| 

OUTPUTスパンを含むすべてのコンテンツは、すべてのブラウザで正常に動作しているが、IE8でそれが外になります。 IE8では、tdに割り当てる幅は考慮しません。

HTML:

<div class="message"> 
<table> 
<tr> 
<td> 
<span>Here it goes the a|ddress and it goes outside</span> 
</td> 
</tr> 
</table> 
</div> 

はCSS:

.message {width:320px;height:220px;} 
.message table td{width:80px;} 
.message table td span{width:80px;}//I tried like this it works in other browsers not in IE8 

答えて

2

この

.message table td span{width:80px; white-space:normal;} 
+0

1のような問題整流それを試してみてください – krish

関連する問題