div高度问题 obj2.currentStyle.height怎么传递值进去啊?用 obj2.currentStyle.height=s; 不行啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 用style设值obj2.style.height=s 楼主 css,dom 好象没那个概念 obj2.style.heigh=obj2.style.heigh+2; 这样会出项错误啊 obj2.style.height=obj2.style.height+2; obj2.style.height=parseInt(obj2.currentStyle.height) + 2; obj2.style.height=parseInt(obj2.currentStyle.height) + 2 + "px"; obj2.style.height=parseInt(obj2.currentStyle.height) + 2 + "px"; LZ的obj2.currentStyle是IE的专有属性,这个属性是经过计算后的原属样式集合,是个只读属性要修改样式属性用obj2.style还有像width、height这类属性是带单位的,需要parseInt转换,自己赋值也要带单位 请问大家一个关于javascript的时间比较的问题 数组中删除元素 帮忙解释一下这段退出弹出提示的代码? 在页面上加media player的问题 div如何想拉窗体一样的进行修改大小呀? javascript 导出到excel的问题 关于innerHTML和document.write 哪位朋友给我讲讲身么是fso?它都能做身么?有身么优势? 一个复选框的问题,有点难 链接中鼠标移上去,背景图片更换如何实现呀?急~~~~提示说只能≤29分,我本想给100分的啊 为什么我用JS写的onmousedown事件无法移动?! 插入式下拉菜单和隐藏文本框的值互动?
obj2.style.height=s
这样会出项错误啊
要修改样式属性用obj2.style
还有像width、height这类属性是带单位的,需要parseInt转换,自己赋值也要带单位