HTML |什么是< marquee>我该怎么办? [英] HTML | What is <marquee> and what can i do with it?

查看:91
本文介绍了HTML |什么是< marquee>我该怎么办?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现有一个名为<marquee>的html标记.我去了几个网站,包括w3schools和selfHTML网站,但找不到有关此标签的任何信息.我用来编写网站的IntelliJ无法识别此标签.它说:未知的HTML标记字幕.此标记是我测试与所有浏览器(甚至在IE中都是 )兼容的方式.

I just found out that there is a html tag called <marquee>. I went to several websites including the w3schools and the selfHTML website but couldnt find anything about this tag. IntelliJ wich I'm using to write my websites, doesnot recognise this tag. It says: Unkown html tag marquee. This tag is how I tested compatible with all browsers(even in IE!).

所以现在我有以下问题:

So now I have the following Questions:

  • 我可以为该标签使用什么属性?

  • What atributes can I use for this tag?

为什么在html-turtorial网站上没有此标记?

Why isnt this tag on the html-turtorial sites?

如果不在创建此标签的W3Schools->中?

If its not in the W3Schools -> who created this tag?

只要您知道我在说什么:

Just that you know what I'm all talking about:

<marquee>Test Marquee</marquee>
<p>Test Paragraph</p>

感谢您的回答

推荐答案

<marquee>是一个旧的HTML元素,默认情况下,该元素会导致其中的任何内容在视口中从右向左滚动.

<marquee> is an old HTML element that causes whatever content inside of it to scroll across the viewport from right to left by default.

为了向后兼容,它可能仍在某些浏览器中工作,但是HTML不再正式支持它,应避免使用.这就是为什么您在教程网站上找不到它的原因.而且,由于不再受支持,因此无法保证即使今天它在某些浏览器中都可以使用,明天也将继续在这些浏览器的新版本中使用.

It may still work in some browsers for backwards compatibility, but it is no longer officially supported in HTML and should be avoided. That's why you are not finding it on tutorial sites. And since it is no longer supported, there is no guarantee that even if it works in some browsers today, it will continue to work in new versions of those browsers tomorrow.

https://developer.mozilla.org/en-US/docs/Web /HTML/Element/选取框

这篇关于HTML |什么是&lt; marquee&gt;我该怎么办?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆