滚动条去掉<body style="overflow-y:hidden">
解决方案 »
- 谁有比较好用的jquery的lightbox
- 请教浏览器兼容问题?
- JQuery实现类似时间安排的表格带下拉选择框
- natineprince和shenzhenNBA进,
- 文本框失去焦点隐藏层层的内容无法输入到文本框中怎么解决?
- 关于options.remove()的问题
- javascript date問題
- 高手来解决该版本问题:在IE5.0下怎么实现(点击子框架网页中某个链接)使整个窗口的页面发生页面转移。
- 如何用JavaScript画一条直线???
- 什么地方能够下载%【资料较全】%的javascript的书籍???
- embed____music___sound___god!!!!all disable
- 怎样使登陆密码不显示??
比如说:<input type="text" name="abc" value="12345">中
type、name、value都可以说是Input的属性,其中,type决定了它的功能的外观,name决定它在网页中的名称,是隐藏的。
我是说“用window.open函数打开新窗口时将滚动条去掉。”
即在open函数中将之设定好,从而使新窗口无边框。
window.open("http://www.sina.com.cn","","scrollbars=0")
</script>
我要的是在页面窗口形成后通过属性得到scrollbar的宽度值,
有没有办法啊?
<br>
<div id=mxh2 style="background-color:#0099FF;width:100px"><p>测试</p><p>测试</p><p>测试</p></div>
<input onclick="alert(document.all.mxh1.offsetWidth);alert(document.all.mxh1.scrollWidth)" value="测试有滚动条" type=button>
<input onclick="alert(document.all.mxh2.offsetWidth);alert(document.all.mxh2.scrollWidth)" value="测试无滚动条" type=button>
<input onclick="alert(document.all.mxh1.offsetWidth - document.all.mxh1.scrollWidth)" value="得到滚动条宽度" type=button>
net_lover & 8988(晓月)