亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

JS去除iframe滾動(dòng)條的方法

 更新時(shí)間:2015年04月01日 11:58:12   作者:瘋狂一夏  
這篇文章主要介紹了JS去除iframe滾動(dòng)條的方法,涉及javascript操作iframe中屬性的技巧,非常具有實(shí)用價(jià)值,需要的朋友可以參考下

本文實(shí)例講述了JS去除iframe滾動(dòng)條的方法。分享給大家供大家參考。具體如下:

下面的代碼可以通過(guò)修改scrolling來(lái)去除iframe的滾動(dòng)條

<!DOCTYPE html>
<html>
<head>
<script>
function removeScroll()
{
document.getElementById("myframe").scrolling="no";
}
</script>
</head>
<body>
<iframe id="myframe" src="/default.asp" scrolling="auto">
<p>Your browser does not support iframes.</p>
</iframe>
<p>The value of the scrolling attribute is:
<script>
document.write(document.getElementById("myframe").scrolling);
</script>
<p>
<input type="button" onclick="removeScroll()" 
value="Remove Scrollbars">
<p>Internet Explorer, Google Chrome, Opera, 
and Safari have problems with setting 
the scrolling attribute.</p>
</body>
</html>

希望本文所述對(duì)大家的javascript程序設(shè)計(jì)有所幫助。

相關(guān)文章

最新評(píng)論