文本仍然从它的点从左到右移动,因为它可以通过marquee标签或我使用jquery为此
<marquee direction="left">this is text we provide it</marquee>
<marquee direction="left">this is text</marquee>
如果您想要从左到右,则direction
属性应设置为right
。如果没有,只需将其从右向左保留为默认值。
请注意:marquee标签很久以前就已弃用,不应使用。
据MDN称:
此功能已过时。虽然它可能仍然适用于某些浏览器,但不鼓励使用它,因为它可以随时删除。尽量避免使用它。
<marquee direction="right">this is text</marquee>
<marquee>this is text</marquee>
请尝试以下操作>从左向右移动
<marquee direction="right">Text move from its starting point left to right</marquee>
请尝试以下操作>从右向左移动
<marquee direction="left">Text move from its starting point left to right</marquee>