随笔分类 - web前端
记录前端遇到的问题以及如何解决的
摘要:$(".header").hover(function(event) {var xx = event.pageX;var yy = event.pageY;})
阅读全文
摘要:input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #22467c inset; } input{ -webkit-text-fill-color: white; }
阅读全文
摘要:<!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
阅读全文
摘要:<!doctype html> <html> <head> <meta charset="utf-8"> <title>带停顿的消息滚动 - 每次移动一行</title> <style type="text/css"> .demo ul{ width:300px;/* height:30px;*/
阅读全文
摘要:function clearNoNum(obj) { obj.value = obj.value.replace(/[^\d.]/g, ""); //清除“数字”和“.”以外的字符 obj.value = obj.value.replace(/\.{2,}/g, "."); //只保留第一个. 清除
阅读全文
摘要:<audio autoplay="autoplay" loop="loop" id="audioPlay" style="display: none;"> <script type="text/javascript">$(function(){var globalAudio=document.get
阅读全文
摘要:position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
阅读全文
摘要:最近公司有个项目需要用H5调起手机拍照的功能,用常规的input 的 capture="camera" 属性,发现只兼容部分移动端浏览器,最后经过几番测试发现给input加入以下属性即可:capture="camera" accept="image/*,video/*"
阅读全文

浙公网安备 33010602011771号