在JavaScript脚本中设置CSS3输入字段的样式

时间:2015-03-03 14:34:16

标签: 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.cursor="pointer";
inp.style.behavior="url(/panel/css/pie/PIE.php)";
inp.style.position="relative";
inp.style.position="inline";
inp.style.display="block\9";

1 个答案:

答案 0 :(得分:0)

将此用于IE 8浏览器问题

  

http://jquery.malsup.com/corner/