谁能介绍一下marquee详细用法?

superiron 2003-05-10 09:33:52
众位仁兄 再下不太明白<marquee>的用法 谁能介绍一下?
...全文
105 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
ysharp 2003-05-11
  • 打赏
  • 举报
回复
Remark!!!
hillhero789 2003-05-10
  • 打赏
  • 举报
回复
在msdn中找到的东西,具体还可以自己看看
marquee:Creates a scrolling text marquee.


Remarks

The default width of the MARQUEE element is equal to the width of its parent element. When a MARQUEE is in a TD that does not specify a width, you should explicitly set the width of MARQUEE. If neither the MARQUEE nor the TD has a width specified, the marquee is collapsed to a 1-pixel width.

To create a vertically scrolling marquee, set its scrollLeft property to 0. To create a horizontally scrolling marquee, set its scrollTop property to 0, overriding any script setting.

The scrollLeft and scrollTop properties are read-only while the marquee is scrolling. When not scrolling, scrollLeft is read/write for a marquee set to scroll horizontally and scrollTop is read/write for a marquee set to scroll vertically.

This element is available in HTML as of Internet Explorer 3.0, and in script as of Internet Explorer 4.0.

This element is a block element.

This element requires a closing tag.

examples:

The following example uses the MARQUEE element to scroll the marquee from left to right across the screen, moving it 10 pixels every 200 milliseconds.

<MARQUEE DIRECTION=RIGHT BEHAVIOR=SCROLL SCROLLAMOUNT=10 SCROLLDELAY=200>
This is a scrolling marquee.
</MARQUEE>

The following example shows some uses of the scrollLeft and scrollTop properties with the marquee element.

<MARQUEE id=m1 direction=right style="border-width:2px;border-style:solid;"
width=200 height=200>right</MARQUEE><BR>
<!-- Push this button to read the scrollLeft and scrollTop property values
as the marquee scrolls. -->
<BUTTON onclick="alert('scrollLeft: ' + m1.scrollLeft + ' scrollRight: ' + m1.scrollTop)">
Read</BUTTON>
<!--When the marquee is stopped, you can set scrollLeft in a horizontal marquee,
or set scrollTop in a vertical marquee. -->
<BUTTON onclick="m1.stop();m1.scrollLeft = 190;">Stop & Set scrollLeft=190
</BUTTON>
<BUTTON onclick="m1.start();">Start</BUTTON>

源码直接下载地址: https://pan.quark.cn/s/d280357b18e5 在网页构建领域中,HTML5被视为当代网页工程的基础规范,其问世显著增强了页面的视觉表现力与用户互动性。本工程致力于运用HTML5技术开发一个电视剧信息展示页面,目的是呈现诸如剧名、演员构成、故事梗概等电视剧关键资料。接下来将深入阐释如何借助HTML5的结构化组件和样式管理功能达成此项目目标。 我们必须掌握HTML5的核心框架。一个规范的HTML5文档一般包含``声明、``根标记、``头部标记和``主体标记。在头部区域,可以配置网页的基本元数据,例如字符集设定、页面标题等。在主体部分,将具体构建电视剧信息列表的内容。 电视剧展示页面通常包含多个条目,每个条目对应一部电视剧。HTML5中的`
`标记用于内容模块化,适合表示单个电视剧的详细信息区域。每个`
`内部,可使用`

`标题标记显示剧名,``图像标记插入宣传剧照,`

`段落标记呈现剧情介绍,而`

87,987

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧