【发布时间】:2012-03-22 13:14:51
【问题描述】:
我有一个文本区域,它包含在一个 div 中,因为我有 jquery 提示并且想在不更改边框的情况下使用不透明度。 有一个可见的垂直滚动条,我只希望在我输入文本字段时显示它并且它超出了容器。我试过溢出:自动;但不起作用。
文本字段:
<label>
<div id="name">
<textarea name="message" type="text" id="message"
title="Enter Message Here"
rows=9 cols=60 maxlength="2000"></textarea>
</div>
</label>
样式:
#name {
border: 1px solid #c810ca;
width: 270px;
height:159px;
overflow: hidden;
position: relative;
}
#message {
height: 400px;
width: 235px;
overflow: hidden;
position: absolute;
}
【问题讨论】: