所以我有了我想要做的控制。它是一个网站的就地文本编辑器,基本思想是它会显示一个带有文本的标签,当你点击文本时,标签会消失,一个文本框出现在它的位置上,这样用户就可以编辑数据了。
一般布局如下(为了清楚起见删除了id和事件):
<table>
<tbody>
<tr>
<td>
Some other cell, etc.
</td>
<td>
<div>
<span>When you click me
index.html
<td>
<div id="wrapper">
words go her alot of them
</div>
</td>
style.css
#wrapper {
height: 100%;
width: 200px;
overflow: auto;
}
我目前无法使滚动条出现,这是我得到的: