如果一个页面有两个输入框,一左一右,右边的那个需要拉动滚动条才能看到,如何使右边的那个输入框聚焦后能看到 "china win the olympic"原码如下:
<table width=3000>
<tr>
<td width=1900>
<input id=a >
</td>
<td>
<input id=a>china win the olympic
</td>
</tr>
</table>
<table width=3000>
<tr>
<td width=1900>
<input id=a >
</td>
<td>
<input id=a>china win the olympic
</td>
</tr>
</table>
解决方案 »
- var nodes = [{color: "red"},{color: "blue"}]这是种什么数组
- JavaScript innerHTML
- javascript 如何实现 stripslahes
- 屏蔽快捷键的问题
- 判断滚动条是否已到顶部!
- 有新人吗互相加下位了积分
- A框架中含有的B框架,如何赋予B框架一个地址?
- [在线]如何让pop窗口精确显示在一个文本框上?
- 请问有什么软件可以将写得比较乱的js代码转换成比较规范的格式
- 关于获取活动页面标签
- 怎样在<textarea></textarea>里显示hyperlink?
- 用javascript怎樣定義一個對象變量?例如:dim aa as object,aa=form1(form1)是一個表單名
<tr>
<td width=1900>
<input id=a >
</td>
<td>
<input id=a onfocus="alert(this.offsetParent.offsetLeft+this.offsetLeft+','+this.offsetTop);self.scrollTo(this.offsetParent.offsetLeft+this.offsetLeft,this.offsetTop)">china win the olympic
</td>
</tr>
</table>