Baseline Widely available
Window.scrollTo()
ã¯ææ¸å
ã®ç¹å®ã®çµã¿åããã®åº§æ¨ã¾ã§ã¹ã¯ãã¼ã«ãã¾ãã
window.scrollTo(x-coord, y-coord) window.scrollTo(options)弿°
x-coord
ã¯ãå·¦ä¸ã«è¡¨ç¤ºããããææ¸ã®æ°´å¹³è»¸ä¸ã®ãã¯ã»ã«ã§ããy-coord
ã¯ãå·¦ä¸ã«è¡¨ç¤ºããããææ¸ã®åç´è»¸ä¸ã®ãã¯ã»ã«ã§ãã- ã¾ã㯠-
options
㯠ScrollToOptions
è¾æ¸ã§ããwindow.scrollTo(0, 1000);
options
ã®ä½¿ç¨ä¾:
window.scrollTo({
top: 100,
left: 100,
behavior: "smooth",
});
注
Window.scroll()
ã¯ãã®ã¡ã½ããã¨ã»ã¼åãã§ããç¸å¯¾ã¹ã¯ãã¼ã«ã«ã¤ãã¦ã¯ã Window.scrollBy()
, Window.scrollByLines()
, Window.scrollByPages()
ãåç
§ãã¦ãã ããã
è¦ç´ ãã¹ã¯ãã¼ã«ããã«ã¯ã Element.scrollTop
ããã³ Element.scrollLeft
ãåç
§ãã¦ãã ããã
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4