textarea滚动条和边框的一部分被切断:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Clipped Scrollbar and Border in Webkit</title>
<style>
textarea,
iframe {
display: block;
width: 300px;
margin: 0;
padding: 0;
}
textarea {
height: 200px;
resize: none;
outline: 0;
border: solid red;
border-width: 0 0 5px;
}
iframe {
height: 0;
border: 0;
}
</style>
</head>
<body>
<textarea>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
<p>Hello, world!</p>
</textarea>
<iframe srcdoc="<p>xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</p>"></iframe>
</body>
</html>
为什么会这样?有什么问题?
答案 0 :(得分:0)