Focus or mouse capture take precedence over where the mouse pointer is.
焦点或鼠标捕获优先于鼠标指针所在的位置。
If mouse capture is elsewhere, the mouse capture is set to that element.
如果鼠标捕获发生在别处,则鼠标捕获设置到该元素。
The following example turns the mouse capture state on or off based on whether the mouse is already captured for the element.
下面的示例根据元素是否已捕获鼠标来打开或关闭鼠标捕获状态。
应用推荐