摘要: $(".header").hover(function(event) {var xx = event.pageX;var yy = event.pageY;}) 阅读全文
posted @ 2021-02-08 14:45 学无止境pk 阅读(85) 评论(0) 推荐(0)
摘要: input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #22467c inset; } input{ -webkit-text-fill-color: white; } 阅读全文
posted @ 2021-02-08 14:43 学无止境pk 阅读(204) 评论(0) 推荐(0)
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.o 阅读全文
posted @ 2021-02-08 14:42 学无止境pk 阅读(450) 评论(0) 推荐(0)
摘要: <!doctype html> <html> <head> <meta charset="utf-8"> <title>带停顿的消息滚动 - 每次移动一行</title> <style type="text/css"> .demo ul{ width:300px;/* height:30px;*/ 阅读全文
posted @ 2021-02-08 14:41 学无止境pk 阅读(176) 评论(0) 推荐(0)
摘要: function clearNoNum(obj) { obj.value = obj.value.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符 obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个. 清除 阅读全文
posted @ 2021-02-08 14:38 学无止境pk 阅读(146) 评论(0) 推荐(0)
摘要: <audio autoplay="autoplay" loop="loop" id="audioPlay" style="display: none;"> <script type="text/javascript">$(function(){var globalAudio=document.get 阅读全文
posted @ 2021-02-08 14:37 学无止境pk 阅读(213) 评论(0) 推荐(0)
摘要: position:fixed;left:50%;top:50%;transform:translate(-50%,-50%); 阅读全文
posted @ 2021-02-08 14:35 学无止境pk 阅读(33) 评论(0) 推荐(0)
摘要: 最近公司有个项目需要用H5调起手机拍照的功能,用常规的input 的 capture="camera" 属性,发现只兼容部分移动端浏览器,最后经过几番测试发现给input加入以下属性即可:capture="camera" accept="image/*,video/*" 阅读全文
posted @ 2021-02-08 14:33 学无止境pk 阅读(505) 评论(0) 推荐(0)