在ht ML 5中,overflow的 意思 是溢出,该属性规定如何处理不符合元素框的内容,语法“对象.style.overflow=visible|hidden|scroll|auto”。
本教程操作环境:windows7系统、CSS3 && HTML5版、Dell G3 电 脑。
意思:HTML溢出;
overflow 属性规定如何处理如何处理不符合元素框的内容。
语法:
Object.style.overflow=visible|hidden|scroll|auto
属性值:
实例
本例使用 overflow 来显示溢出元素框的内容:
<html> <head> <style ty PE ="text/css"> div { border: thin solid green; width: 100px; h ei ght: 100px; } </style> <script type="text/javascript"> function hideOverflow() { document.getElementById("div1").style.overflow = "hidden"; } </script> </head> <body> <div id="div1"> This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. This is some text. </div> < br /> <input type="button" onclick="hideOverflow()" value="Hide overflow" /> </body> </html>
效果:
推荐学习:html视频教程
以上就是html5中overflow 是什么 意思的详细内容,更多请关注其它相关 文章 !
总结
以上是 为你收集整理的 html5中overflow是什么意思 全部内容,希望文章能够帮你解决 html5中overflow是什么意思 所遇到的问题。
如果觉得 网站内容还不错, 推荐好友。
查看更多关于html5中overflow是什么意思的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did204462