在JavaScript脚本中设置CSS3输入字段的样式
我现在的代码是这样的:在JavaScript脚本中设置CSS3输入字段的样式,javascript,css,internet-explorer-8,Javascript,Css,Internet Explorer 8,我现在的代码是这样的: inp.style.marginTop="9px"; inp.style.width="150px"; inp.style.cursor="pointer"; inp.style.position="relative"; 现在,我正试图通过这种方式使其在IE8上看起来更好,但它不起作用-这应该使输入字段四舍五入: inp.style.marginTop="9px"; inp.style.marginTop="7px\9"; inp.style.width="150px"
inp.style.marginTop="9px";
inp.style.width="150px";
inp.style.cursor="pointer";
inp.style.position="relative";
现在,我正试图通过这种方式使其在IE8上看起来更好,但它不起作用-这应该使输入字段四舍五入:
inp.style.marginTop="9px";
inp.style.marginTop="7px\9";
inp.style.width="150px";
inp.style.cursor="pointer";
inp.style.behavior="url(/panel/css/pie/PIE.php)";
inp.style.position="relative";
inp.style.position="inline";
inp.style.display="block\9";
这是IE 8浏览器的用户问题