T.T*_*.T. 0 html javascript firefox
如何在Firefox中展开/折叠html字段?我在网上加入了一些JavaScript示例,但它们只能在IE中使用.(我只限于HTML和JS)
建议表示赞赏.
谢谢.
是的,我想显示/隐藏div等.
如果输入字段具有ID属性,则可以根据需要使用CSS对其进行样式设置.我建议使用像jQuery这样的库,但我提供了一个例子,但没有:
// hiding without jQuery
document.getElementById('myInput').style.display = 'none'
// showing without jQuery
document.getElementById('myInput').style.display = 'block'
// hiding with jQuery
$('#myInput').hide()
// showing with jQuery
$('#myInput').show()
Run Code Online (Sandbox Code Playgroud)
jQuery:http://jquery.com
归档时间: |
|
查看次数: |
3236 次 |
最近记录: |