编辑下面的代码:【加编码】
<html> <head> <style> div { background-color:#00FFFF; width:150px; height:150px; overflow:auto; } </style> </head> <body> <p>The overflow property decides what to do if the content inside an element exceeds the given width and height properties.</p> <div> You can use the overflow property when you want to have better control of the layout. Try to change the overflow property to: visible, hidden, scroll, or inherit and see what happens. The default value is visible. </div> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂