HTML 中的选取框

发布于 2024-07-16 02:22:23 字数 100 浏览 7 评论 0原文

我该如何用 html 制作字幕? 我可以定义所有内容,即速度、循环、文本颜色、背景颜色、方向等。仅用 html 还是我需要了解另一种语言来定义这些方面? 我还可以在字幕中实现图像吗?

how would I go about making a marquee in html?
could I define everything i.e. speed, looping, text color, background color, direction, etc. With just html or should I need to know another language to define those aspects?
Also could I implement an image in the marquee?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

落花浅忆 2024-07-23 02:22:23

@Paolo 是正确的,您可能还想研究一些工具来完成类似的事情,但具有更多的功能。 例如 jScroller

@Paolo is correct, you also might wanna look into tools to do similar things but have much more functionality. jScroller for example.

亚希 2024-07-23 02:22:23

您可以在选取框标记中添加图像:

http://jdstiles.com/java/scrollers/scrollingimage .html

但这不是一个好用的标签。 寻找执行此操作的众多 JavaScript 库之一,例如 跨浏览器字幕,允许您设置您喜欢的所有参数。

-亚当

You can do images in the marquee tag:

http://jdstiles.com/java/scrollers/scrollingimage.html

But it's not a good tag to use. Go for one of the many javascript libraries that do this, such as this Cross Browser Marquee that allows you to set all the parameters you like.

-Adam

○愚か者の日 2024-07-23 02:22:23

像这样的事情:

<MARQUEE id=Marquee2 title="" 
style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; PADDING-LEFT: 3px; Z-INDEX: 2; OVERFLOW: hidden; BORDER-LEFT: 1px; WIDTH: 5.197in; TEXT-INDENT: 0px; BORDER-BOTTOM: 1px; HEIGHT: 0.156in" 
trueSpeed scrollDelay=150 MsoTextAlign="General">My Text Goes Here</MARQUEE>

Something like this:

<MARQUEE id=Marquee2 title="" 
style="BORDER-RIGHT: 1px; BORDER-TOP: 1px; PADDING-LEFT: 3px; Z-INDEX: 2; OVERFLOW: hidden; BORDER-LEFT: 1px; WIDTH: 5.197in; TEXT-INDENT: 0px; BORDER-BOTTOM: 1px; HEIGHT: 0.156in" 
trueSpeed scrollDelay=150 MsoTextAlign="General">My Text Goes Here</MARQUEE>
∞琼窗梦回ˉ 2024-07-23 02:22:23

您可以更改 html 中的速度、方向和循环,但要编辑背景颜色,您将需要使用 CSS。 要设置文本颜色的样式,您不需要设置的样式。 但您需要对标签内的元素进行样式设置。

You can change the speed, direction and looping in the html but to edit background color you will need to use CSS. To style the text color, you do not need to style the <marquee> but you need to style the elements INSIDE the tag.

能怎样 2024-07-23 02:22:23

我最近使用 Cycle 2 Jquery 插件在 HTML 中实现了一个选框:
http://jquery.malsup.com/cycle2/demo/non-image.php

<div class="cycle-slideshow"  data-cycle-fx="scrollHorz" data-cycle-speed="9000" data-cycle-timeout="1"  data-cycle-easing="linear" data-cycle-pause-on-hover="true" data-cycle-slides="> div" >
  <div>  Text 1  </div>
  <div>  Text 2  </div>
</div>    

I recently implemented a marquee in HTML using Cycle 2 Jquery plugin :
http://jquery.malsup.com/cycle2/demo/non-image.php

<div class="cycle-slideshow"  data-cycle-fx="scrollHorz" data-cycle-speed="9000" data-cycle-timeout="1"  data-cycle-easing="linear" data-cycle-pause-on-hover="true" data-cycle-slides="> div" >
  <div>  Text 1  </div>
  <div>  Text 2  </div>
</div>    
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文