【Javascript】【适配】取消移动网页全部默认样式和行为

css代码


* {
    margin: 0;
    padding: 0;
    outline: none;
    text-decoration: none;
    -webkit-user-select: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

js代码


    document.onmousedown = function (e) {
        e = e || event;
        e.preventDefault();
    };

猜你喜欢

转载自blog.csdn.net/u013718730/article/details/90747628