【发布时间】:2015-07-05 20:43:25
【问题描述】:
我希望能够使用 css 中的调整大小功能调整 div 的大小。在我的 .css 文件中,我有:
#test {
border: 2px solid;
padding: 20px;
width: 300px;
resize: both;
overflow: auto;
}
我的 div 如下:
<div id="test">Let the user resize both the height and the width of this div element.</div>
在我将我的 html 放入 iframe 之前它工作正常,我无法调整 div 的大小。怎么了?
PS:我不想用 jquery
【问题讨论】: