主页
CSS
CSS Overflow
Tryit: 使用 overflow: visible
运行 ❯
建立您
自己的
网站
×
改变方向
保存代码
更换主题,亮/暗
前往 Spaces
<!DOCTYPE html> <html> <head> <style> div { background-color: coral; width: 200px; height: 65px; border: 1px solid; overflow: visible; } </style> </head> <body> <h2>Overflow: visible</h2> <p>By default, the overflow is visible, meaning that it is not clipped and it renders outside the element's box:</p> <div>You can use the overflow property when you want to have better control of the layout. The overflow property specifies what happens if content overflows an element's box.</div> </body> </html>