网站插入视频可以使用iframe引入,本文介绍使用iframe引入站外视频的方法以及iframe参数及自动播放详解。
iframe引入视频代码
1 |
<iframe width="300" height="200" rameborder="0" allowfullscreen="true" scrolling="no" autoPlay=true src="视频地址"></iframe> |
iframe插入视频参数说明
width="300" height="200"代表:宽度为300px,高度为200px;
width="30%" height="50%"代表:宽度占比30%;高度占比50%;
frameborder="0" 代表:隐藏边框,“1”代表显示边框;
scrolling="no"代表:不显示滚动条,“yes”代表显示滚动条,“auto”代表根据网页大小自动显示滚动条;
autoPlay=true 代表:自动播放视频;
2023云服务器价格出炉,又降价了!
阿里云:阿里云2核4G服务器6M带宽68元一年起(价格便宜多配置可选)
腾讯云:腾讯云2核4G8M服务器70元一年(查看更多配置报价)
华为云:2023华为云优惠活动云服务器39元一年起(查看更多配置报价)
发表评论