HTML 框架

html 框架

分两种:frameset和iframe

这里主要说一下第二种:iframe

iframe    在原来的页面嵌入一个小窗口(页面)

<iframe src="http://www.baidu.com" width="400"height="400"></iframe>

src=“地址” width 宽度 height 高度    --在这个页面中嵌入一个百度

标题栏小图标:

<title>百度一下,你就知道</title>  标题栏名字在title里面
<link rel="shortcut icon" type="image/x-icon" href="images/bd.ico" media="screen" />

链接的图片必须要用  ico  格式

锚点:
在一个页面中快速定位到某一个位置   就是那种目录导航功能

目标位置的标题处 添加id="???"   id值不能重复
使用一个超链接,href里面填 "#???"

      

会实现在页面上点击第三条,然后跳转到右图第三条的位置,第三条会置顶

插入音乐

<EMBED src="音乐地址" autostart="true" loop="true" width="100" height="200">

autostart 自动播放    loop  音频结束自动播放

插入视频

一般插入视频网站的链接   找到视频后在分享里面找到html代码   在插入

<embed src=VideoIDS=‘视频地址’ allowFullScreen='true' quality='high' width='480' height='400' align='middle' allowScriptAccess='always' type='application/x-shockwave-flash'></embed>

?VideoIDS=XNDA3OTM4NA=&isAutoPlay=true&isShowRelatedVideo=false&embedid=-&showAd=0  
视频自动播放代码
 
 
简单的滚动效果:
<marquee direction="right" behavior="alternate" scrollamount="50">文字或者图片都可以</marquee>

scrollamount=滚动速度

原文地址:https://www.cnblogs.com/big-lll/p/6607328.html