随笔分类 - HTML+CSS
摘要:.clearfix:before,.clearfix:after { content: ""; display: table; } .clearfix:after { clear: both; } .clearfix { *zoom: 1; }
阅读全文
摘要:.xhcy_img {width:159px;height:94px;position: relative;overflow: hidden;display: flex;justify-content: center;align-items: center;} .xhcy_img img {marg
阅读全文
摘要:<audio id="bgmusic" src="/static/media/flipsound.mp3" preload></audio> // audio音频 var audio = document.getElementById("bgmusic"); if (typeof WeixinJSB
阅读全文
摘要:.error {border:#ff0000 1px solid;background: rgba(195,5,5,.2);}<form action="#" method="post" onsubmit="return checkForm(this);"> </form> function che
阅读全文
摘要:<video id=“vid”> <source src="./video.mp4"></video> //尽量这样写 别直接再video中写src 那样会出现啊兼容性问题 <div class="time1">00:00:00</div> //视频播放时间 <div class="time1">8
阅读全文
摘要:用上面的代码,可以解决在页面中空白的问题
阅读全文