插入图像
<img src="./favicon.ico" alt="图像" title="sss">
alt:图像替代文本
hspace:定义图像左侧和右侧的空白
vspace:定义图像上下侧的空白
usemap:将图像定义为客户器端图像映射
设置图像边框:
<img src="./favicon.ico" border="10">
设置图像对齐方式:
<img src="./favicon.ico" align="center">
设置图像的间距通过设置上下左右间距实现
设置图像热区链接:
<img src="./js.jpg" usemap="#hello">
<map name="hello">
<area shape="rect" coords="0,0,1,1" href="https://nsl.lenovo.com.cn/#/index/index" alt="热区形状1">
<area shape="circle" coords="0,0,3" href="https://www.oschina.net/" alt="热区形状2">
<!-- <area shape="poly" coords="x1,y1,x2.y2....." href="" alt=""> -->
</map>
设置滚动文字
<marquee behavior="" direction="" onMouseOver="this.stop()" onmouseout="this.start()"></marquee>
onMouseOver="this.stop()"光标移动到区域就暂停滚动,
οnmοuseοut="this.start()“光标移出区域就开始滚动
bacolor=“文字背景颜色”
loop=“循环次数” -1表示无限循环
direction=“滚动方向”
behavior=”‘滚动方式’
direction属性值 | 说明 |
---|---|
up | 向上 |
down | 向下 |
left | 向左 |
right | 向右 |
left为默认值 | |
behavior取值 | 说明 |
slide | 滚动一次就停止 |
scroll | 循环往复滚动,默认值 |
alternate | 来回交替滚动 |
滚动时间与滚动延迟
<marquee scrollamount="滚动速度" scrolldelay="延迟时间"></marquee>
音频,视频及flash文件
<embed src="多媒体文件" width="界面的宽度" height="界面的高度" autostart="true|false" loop="true|false">
src:设置媒体文件的路径
autostart:设置自动播放
loop:规定是否循环