html---10.多媒体页面

10.1设置滚动字体

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
10.1.1滚动文字标签marquee<br>
10.1.2滚动方向属性direction<br>
10.1.3设置滚动方式behavior:一次scroll;slide一次;alternate来回交替滚动
10.1.4滚动速度属性:scrollamount
10.1.5滚动延迟属性:scrolldelay:文字滚动的时间间隔
10.1.6滚动循环属性:loop循环次数
10.1.7滚动范围属性:width,heigth
10.1.8滚动背景颜色属性bgcolor
10.1.9滚动控件属性:hpace,vspace水平以及垂直范围
<marquee><font color="aqua" size="20">欢迎您</font></marquee>
<marquee direction="down"><font color="aqua" size="20">欢迎您</font></marquee>
<marquee direction="up"><font color="aqua" size="20">欢迎您</font></marquee>
<marquee direction="left"><font color="aqua" size="20">欢迎您</font></marquee>
<marquee direction="right"><font color="aqua" size="20">欢迎您</font></marquee>
<marquee direction="right" behavior="slide"><font color="aqua" size="20">欢迎您</font></marquee>
<marquee bgcolor="blue" direction="right" behavior="slide" scrollamount="50"><font color="aqua" size="20">欢迎您</font></marquee>


</body>
</html>

10.2添加背景音乐

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
10.2.1设置背景音乐-bgsound
10.2.2设置循环次数loop
<bgsound src="位置" loop="循环次数"></bgsound>
</body>
</html>

10.3添加多媒体文件

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<embed>
10.3.1添加多媒体文件标记-embed
10.3.2设置自动运行-autostart:true,false
10.3.3设置循环次数-loop
10.3.4-隐藏面板-hidden
10.3.5添加其他类型的媒体文件:多媒体后缀不一样
<embed src="多媒体文件地址" width="" height=""></embed>
</body>
</html>
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值