javascript - 设置选取框标签文本的初始位置

标签 javascript html marquee

我使用向上方向滚动 html 中选取框标记中的文本。最初它从底部开始,然后继续滚动。我想设置它从选框高度顶部开始的初始位置。是否可以这样做或者可以通过使用 javascript 来完成。请帮忙。

<marquee behavior="scroll" direction="up">Your vertically scrolling text goes here</marquee>
<p><a  style="font-size:11px;color:#999;" href="http://www.html.am/html-codes/text/">HTML text code</a></p>

最佳答案

将他的方向设置为向下并将高度设置为 100%

<marquee behavior="scroll" direction="down" height="100%">Your vertically scrolling text goes here</marquee>

关于javascript - 设置选取框标签文本的初始位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8926667/

相关文章:

javascript - 在网页上运行 JS 函数的问题

javascript - DOM Mutation Observers 的跨浏览器支持情况如何?

html - 如何向 html 边框添加填充/类似效果

html - Marquee 中的链接无法点击!

wpf - WPF字幕文本动画

javascript - 在新选项卡中打开附加的 URL

javascript - jquery ui - 可排序 : get new position of all elements

javascript - 如果大于 javascript 到 XSLT 不起作用

javascript - 为数组项添加 onclick 事件

javascript - 将内容添加到选取框间隔