大家好,设置一个div的min-height如何用js实现?以下方式均不行,请指教,谢谢,谢谢~~
document.getElementById('id').style.minHeight = 100;
document.getElementById('id').minHeight = 100;
document.getElementById('id').style.min-height = 100;
document.getElementById('id').min-height = 100;
document.getElementById('id').style.minHeight = 100;
document.getElementById('id').minHeight = 100;
document.getElementById('id').style.min-height = 100;
document.getElementById('id').min-height = 100;
解决方案 »
- javascript 怎么把动态id的value放到数组里面
- iframe 里的所有操作怎么不在 父页状态栏里显示??
- jquery函数返回问题,在线等
- 一个switch循环 说是SyntaxError: Unexpected token {
- 关于javascript函数实现web表格导出到excel中的问题!急!!!
- 文本框控制
- <div></div>定位问题,通宵在线
- 急求助!!关于判断的!
- 为什么我用history.go(-1)和history.back()没有反应,无法返回前一个页面?
- 怎样用javascript控制让body执行onload事件而<body>标签里面没有onload="函数()"这句话。
- 用UL列表实现树目录(带连接线)
- 如何将已最小化的页面还原到最小化之前的桌面位置
document.getElementById('id').style.minHeight = 100;
document.getElementById('id').minHeight = 100;
是可以的
document.getElementById('id').minHeight = 100;document.getElementById('id').style.Height = 100;
document.getElementById('id').Height = 100;先把你 css 样式 的兼容性调好 搬过来就OK 了
document.getElementById('id').style.minHeight = 200;
一般都采用expression代替
document.getElementById('id').Height = 100 + "px";