scrollIntoView Method
来源:互联网 发布:oss js 上传文件 跨域 编辑:程序博客网 时间:2024/05/02 02:02
Causes the object to scroll into view, aligning it either at the top or bottom of the window. Syntax Parameters Return Value No return value. Remarks The scrollIntoView method is useful for immediately showing the user the result of some action without requiring the user to manually scroll through the document to find the result. Depending on the size of the given object and the current window, this method might not be able to put the item at the very top or very bottom, but will position the object as close to the requested position as possible. Example This example uses the scrollIntoView method to underline the content of the document's fifth paragraph and scroll it into view at the top of the window. Standards Information There is no public standard that applies to this method. Applies Toobject.scrollIntoView( [bAlignToTop])
bAlignToTopOptional. Boolean that specifies one of the following values:
false
var coll = document.all.tags("P");
if (coll.length >= 5)
{
coll(4).style.textDecoration = "underline";
coll(4).scrollIntoView(true);
} A, ADDRESS, APPLET, AREA, B, BIG, BLOCKQUOTE, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, controlRange, CUSTOM, DD, DFN, DIR, DIV, DL,DT, EM, EMBED, FIELDSET, FONT, FORM, hn, HR, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password,INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, KBD, LABEL, LEGEND, LI, LISTING, MAP, MARQUEE, MENU, NOBR, OBJECT, OL, P, PLAINTEXT, PRE,S, SAMP, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TextRange, TFOOT, TH, THEAD, TR, TT, U, UL, VAR, WBR, XMP,ControlRangeCollection Constructor, Element Constructor, TextRange Constructor
- scrollIntoView Method
- scrollIntoView
- scrollIntoView
- js scrollIntoView
- 关于scrollIntoView()方法
- scrollIntoView()的用法
- ScrollInToView方法(滚动页面)
- 页面元素的定位scrollintoview
- 使用scrollIntoView()进行内容定位
- 提交页面的定位--scrollIntoView的用法
- 提交页面的定位--scrollIntoView的用法
- WPF 中listView.ScrollIntoView失效的问题
- W3C DOM之scrollIntoView的用法
- 使用scrollIntoView方法定位页面元素---小结
- WPF Popup下ListBox ScrollIntoView无效问题
- Method
- method
- method
- 常用到的query
- 中国SEOer的几个级别,你属于哪类?
- napi学习001
- 线程函数中操作DC的注意事项
- Windows32位(x86)和64位(x64)什么意思?
- scrollIntoView Method
- 实例详解C++友元
- The Knights of the Round Table
- 链接--地址重定位
- linux smartctl 磁盘健康监测
- js取整数四舍五入
- Oracle中TO_DATE格式
- CSDN特别收录 --- 超强的指针 *一辈子都找不到的牛B贴
- 解决jquery和其他库的冲突