<!DOCTYPE html>
<html>
<head>
<style>
div {
background-color: #eee;
width: 200px;
height: 100px;
border: 1px dotted black;
overflow: auto;
}
</style>
</head>
<body>
<h1>CSS 溢出</h1>
<p>值 auto 类似 scroll,只是在必要时添加滚动条:</p>
<div>当您想更好地控制布局时,可以使用 overflow 属性。overflow 属性规定如果内容溢出元素框会发生什么情况。值 auto 类似 scroll,
只是在必要时添加滚动条:值 auto 类似 scroll,只是在必要时添加滚动条:值 auto 类似 scroll,只是在必要时添加滚动条:</div>
</body>
</html>
css文本溢出overflow
最新推荐文章于 2024-07-25 14:15:14 发布