Skip to content

Commit 5c46b1c

Browse files
committed
元素初始化input,textarea,button,a标签
1 parent 85c4d05 commit 5c46b1c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

src/reset.styl

+17-3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ $reset-html5() {
5656
display: none;
5757
}
5858
}
59+
5960
$global-reset() {
6061
html, body, div, span, applet, object, iframe,
6162
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
@@ -84,9 +85,22 @@ $global-reset() {
8485
a img {
8586
border: none
8687
}
87-
if $support-html5{
88-
$reset-html5();
89-
}
88+
input,textarea,button{
89+
-webkit-tap-highlight-color: transparent;
90+
-webkit-appearance: none;
91+
border-radius 0
92+
}
93+
textarea{
94+
outline: none;
95+
resize: none;
96+
}
97+
if $support-html5 {
98+
$reset-html5();
99+
}
100+
a{
101+
cursor: inherit;
102+
-webkit-tap-highlight-color: transparent;
103+
}
90104
}
91105

92106
$nested-reset() {

0 commit comments

Comments
 (0)