jQuery UI Examples - Position (Position)
Position an element relative to the window, document, anchor, cursor/mouse, or other elements.
For more details about the .position() method, see the API documentation .position()。
Default functionality
Use the form controls to configure the position, or drag the positioned element to change its offset. Drag the parent element around to see collision detection.
jQuery UI 定位(Position) - 默认功能
这是父元素的位置。
to position
to position 2
定位...
my:
at:
collision:
Image carousel
A prototype photo browser that uses Position to place images on the left, in the center, and on the right, then cycles them. Use the links at the top to cycle the images, or click on the left or right side of an image to cycle it. Note that the images are repositioned when the window is resized.
jQuery UI 定位(Position) - 图像循环