Skip to content

Instantly share code, notes, and snippets.

View dyun8080's full-sized avatar
:electron:
On vacation

dengyun dyun8080

:electron:
On vacation
  • guangzhou
View GitHub Profile
@dyun8080
dyun8080 / ios-body-click-buggle-bug.html
Last active June 3, 2019 02:26
ios 在 body 上绑定 click 会不起作用的问题
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>iOS body click 事件冒泡的 bug</title>
</head>
<body>
<h1>点击 h1 不会冒泡到 body</h1>
@dyun8080
dyun8080 / reset-button-style.css
Last active May 30, 2019 06:24
reset the button stylesheet
/* 重置浏览器默认的 button 样式 */
button {
padding: 0;
cursor: pointer;
color: inherit;
border: none;
outline: none;
background: none;
font: inherit;
-webkit-appearance: none;