随着输入文字的多少,textarea自动变化高度
<html>
<head>
<style type="text/css">
.t_area{
width:300px;
overflow-y:visible
}
</style>
</head>
<body>
<textarea class="t_area">
随便在这里输入内容,textarea的高度会随着你输入的内容而变化,不会出现滚动条,实现很简单,就是一段css:overflow-y:visible
</textarea>
</body>
</html>
<head>
<style type="text/css">
.t_area{
width:300px;
overflow-y:visible
}
</style>
</head>
<body>
<textarea class="t_area">
随便在这里输入内容,textarea的高度会随着你输入的内容而变化,不会出现滚动条,实现很简单,就是一段css:overflow-y:visible
</textarea>
</body>
</html>
合乎自然而生生不息。。。