html
人生海海丶
这个作者很懒,什么都没留下…
展开
-
video 视频添加“封面”,点击播放
给video添加封面,并可以点击播放:先给video添加“poster”属性,再添加js。<video src="" controls="controls" id='videoId' height="" poster="images/video_03.jpg"> ></video>var video=document.getElementById('...转载 2019-07-15 09:40:55 · 12446 阅读 · 0 评论 -
animate 添加入场动画
屏幕滚动到此处,div添加动画效果。<div class="anim anim-2" > </div>$(function(){ // 出场动画 var anim = $(".anim"); setTimeout(function(){//规避页面加载不完整高度获取异常 $(window).scroll(function() { ...原创 2019-07-15 09:53:55 · 1368 阅读 · 0 评论 -
boostrap tab切换
<div class="pro-tab-box "> <ul id="myTab" class="nav nav-tabs"> <li class="active col-md-2 col-xs-4 p0"> <a href="#td" data-toggle="tab">特点</a> &l...原创 2019-07-15 10:17:49 · 462 阅读 · 0 评论 -
表单
input<!-- 文本 --><label for="sno">学号:</label><input type='text' id='sno' placeholder='请输入。。。' /><!-- 单选框 --><input type="radio" checked="checked" /><!-- 复...原创 2019-07-19 11:51:42 · 126 阅读 · 0 评论