HTML

作者: PeterWang2017 | 来源:发表于2019-04-16 10:36 被阅读0次

    1.iframe设置透明只需将其src的html的body的background设为transparent
    2.div实现下拉菜单
    3.ie播放mp4可以是用html5media,但要注意video标签的宽高
    4.html页面紧跟head追加<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">偷偷使用最高版本ie
    5.浏览器播放视频

    1.使用html5media
    <span title="" class="vidoePlayer html5media-video-fallback" id="player" style="width: 1366px; height: 768px; display: block;"> <object width="100%" height="100%" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" > <param name="movie" value="js/lib/html5media/flowplayer.swf"/> <param name="allowfullscreen" value="true"/> <param name="allowscriptaccess" value="always"/> <param name="quality" value="high"/> <param name="cachebusting" value="false"/> <param name="bgcolor" value="#000000"/> <param name="wmode" value="opaque"/> <param name="flashvars" value='config={"playlist":[{"url":"*.mp4","autoPlay":false,"autoBuffering":false}],"canvas":{"backgroundColor":"#000000"}}'/> </object> </span>
    只有ie8需要加classid,参考1
    2.使用embed
    <embed src="*.mp4" allowFullScreen="true" quality="high" width="480" height="400" align="middle" allowScriptAccess="always" type="application/x-shockwave-flash" autoplay="0"></embed>

    相关文章

      网友评论

          本文标题:HTML

          本文链接:https://www.haomeiwen.com/subject/pkmvwqtx.html