以下代码里这么写isIe6?'90%':'100%',不会报错,用expression就报错了,如:isIe6?expression(document.body.clientWidth):'100%',请问怎么在jq里如何使用expression?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <script src="http://files.cnblogs.com/shuicaituya/j1.4.js" type="text/javascript" language="javascript"></script>
<script language="javascript">
var isIe6 = navigator.appVersion.indexOf("MSIE 6.0") > 0;
$(function(){
$("<div></div>").css({position:"absolute","z-index":1,left:0,top:0,background:"#000",width:(isIe6?'90%':'100%'),"min-width":'1000px',opacity:0.3,height:$(document).height()}).appendTo(document.body);
});
</script>
</head>
<body>
</body>
</html>