摘要 |
Embodiments of the present invention provide a method and a device for playing multimedia in a browser. The method comprises: playing a multimedia file in a multimedia playing container in a visual area of the browser; moving the visual area of the browser, and monitoring the position of the multimedia playing container, which is relative to the visual area of the browser; and when the fact that the multimedia playing container is moved out of the visual area of the browser is determined according to the position of the multimedia playing container, which is relative to the visual area of the browser, setting the position attribute of the multimedia playing container to move the multimedia playing container into the visual area of the browser. According to the embodiments of the present invention, when a multimedia playing area is moved out of the current visual area, a user can still browse the multimedia normally, and the operation complexity is also reduced. |