HTML/CSS/JS
Name_Vinny
这个作者很懒,什么都没留下…
展开
-
DIV叠加,点击时如何只激发顶层DIV的JS事件
function getEvent() { if (document.all) { return window.event; //如果是ie } func = getEvent.caller; while (func != null) { var arg0 = func.arguments[0]; if (arg0) {转载 2016-01-15 15:39:51 · 863 阅读 · 0 评论 -
css常用属性
.c{ -webkit-animation:leaf 0.6s ease 0.2s 1 normal both; //旋转中心点 -webkit-transform-origin: 75% 85%; } //普通动画 @-webkit-keyframes leaf{ 0% {opacity:1;transform: scale(1,1) translate(0,0) rotate(0deg);原创 2017-06-08 12:05:58 · 312 阅读 · 0 评论 -
html video 视频的播放与暂停
Play function play(){ var player = document.getElementById("player"); var time = document.getElementById("time"); if (player.paused) { player.play(); } else { player.pause(); }原创 2017-07-28 15:12:58 · 4957 阅读 · 0 评论