文本从起点向左移动

问题描述 投票:-3回答:2

文本仍然从它的点从左到右移动,因为它可以通过marquee标签或我使用jquery为此

<marquee direction="left">this is text we provide it</marquee>

enter image description here

<marquee direction="left">this is text</marquee>
html css marquee
2个回答
0
投票

如果您想要从左到右,则direction属性应设置为right。如果没有,只需将其从右向左保留为默认值。

请注意:marquee标签很久以前就已弃用,不应使用。

据MDN称:

此功能已过时。虽然它可能仍然适用于某些浏览器,但不鼓励使用它,因为它可以随时删除。尽量避免使用它。

Documentation on MDN

<marquee direction="right">this is text</marquee>

<marquee>this is text</marquee>

0
投票

请尝试以下操作>从左向右移动

<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>
© www.soinside.com 2019 - 2024. All rights reserved.