2011-05-30 127 views
0

我遇到了一個問題(與其他許多人:)與IE瀏覽器。Internet Explorer - 浮動和背景問題

這裏是我的例子,在那裏,我們應該看到文本「產品」:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <style type="text/css"> 
#editor_cont { 
    background-color: #eee; 
} 
.product_list { 
    float: right; 
} 
    </style> 
</head> 
<body> 
<div id="editor_cont"> 
    <div>Product</div> 
    <select class="product_list"> 
    <option value=""></option> 
    </select> 
</div> 
</body> 
</html> 

在IE9 <文本「產品」不是通過增加變焦displaied

回答

0

可以解決此問題:1到包含「產品」文本的div。

#editor_cont div { 
    zoom: 1; 
}