日期:2014-05-16  浏览次数:20285 次

ie浏览器不兼容
#menu>li span{font-family:'华文新魏';font-size:20px;color:#dbd

这个css写法在ie8下没用,怎么兼容

<body style="font-family:Tahoma;background:#ffffff">
<ul id="menu">
<li><span>网站管理查询</span>
<ul class="childmenu" style="margin-top:10px;margin-left:2px;padding:0px;">
<li><a href="__URL__/active_count" target="main" onclick="show()">123213</a></li>

------解决方案--------------------
HTML code
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
#menu>li span{font-family:'华文新魏';font-size:20px;color:#dbd;}
</style>
</head>
这个css写法在ie8下没用,怎么兼容

<body style="font-family:Tahoma;background:#ffffff">
<ul id="menu">
<li><span>网站管理查询</span>
<ul class="childmenu" style="margin-top:10px;margin-left:2px;padding:0px;">
<li><a href="__URL__/active_count" target="main" onclick="show()">123213</a></li>
</body>
</html>