我正在使用选取框来显示我网站上的仪表板,选取框标记写为:
<marquee loop="infinite" behavior="scroll" direction="up" scrollamount="1" height="500" width="500">
.............
.............
</marquee>
如您所见,字幕内容从下向上滚动。
问题
When I hit the URL from browser, the place where marquee is used look empty and then the marquee content start coming from the bottom.
我想要的是字幕内容应该从中间开始,而不是从底部开始。
最佳答案
<marquee>
元素没有这个功能。有一些使用 CSS3 创建选取框的建议,但这些建议远未确定。
所以唯一真正的选择是用 javascript 编写一个。
关于html - 跑马灯应该从中间开始?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9887497/