2011-05-30 130 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; 
}