html - 文本从其起点从左向右移动
问题描述
文本仍然从它的点从左到右移动,因为它可以通过选框标记或者我使用 jquery
<marquee direction="left">this is text we provide it</marquee>
<marquee direction="left">this is text</marquee>
解决方案
如果要从左到右,direction
则应将属性设置为right
. 如果没有,只需将其保留为从右到左是默认设置。
请注意:选框标签很久以前就被弃用了,不应使用。
根据 MDN:
此功能已过时。尽管它在某些浏览器中可能仍然有效,但不鼓励使用它,因为它可能随时被删除。尽量避免使用它。
<marquee direction="right">this is text</marquee>
<marquee>this is text</marquee>