我创建了一个文本区域,希望当我的文本超出文本区域的宽度时,不要创建滚动条,而是应该增加文本区域的宽度。我该怎么做呢?以下是我应用的HTML代码和CSS,请为我提供建议。我正在尝试让这个文本区域像Facebook的评论框那样工作。
<style>
.textarticle
{
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.18);
width:600px;
max-width:600px;
min-height: 50px;
max-height: 140px;
border:1px solid E7DBDB;
border-radius:5px;
overflow:none;
}
</style>
<html>
<textarea class="textarticle" name="textarticl" placeholder="Enter Article">
</html>