From 088d07908d556efee2c8af5b6add32d08713aad7 Mon Sep 17 00:00:00 2001 From: Kira Date: Thu, 29 Oct 2020 17:39:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3chrome=E4=B8=8Binp?= =?UTF-8?q?ut=20type:file=20cursor=E8=AE=BE=E7=BD=AE=E4=B8=BApointer?= =?UTF-8?q?=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/editor/editor.multifile.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/less/base/single/editor/editor.multifile.less b/src/less/base/single/editor/editor.multifile.less index 0ce354364..6c954fd91 100644 --- a/src/less/base/single/editor/editor.multifile.less +++ b/src/less/base/single/editor/editor.multifile.less @@ -9,4 +9,12 @@ // BI-52961 IE11出现光标的兼容: 通过布局的overflow: hidden创建BFC, 此时设置负margin隐藏光标不会影响其他元素 margin-left: -5px; } + + // 解决chrome下input type:file cursor设置为pointer无效的问题 + // https://stackoverflow.com/questions/1537223/change-cursor-type-on-input-type-file + input[type=file], /* FF, IE7+, chrome (except button) */ + input[type=file]::-webkit-file-upload-button { + /* chromes and blink button */ + cursor: pointer; + } } \ No newline at end of file From c71263470ec527b42ab1632f78f45d0bd27e3475 Mon Sep 17 00:00:00 2001 From: Kira Date: Thu, 29 Oct 2020 18:16:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/less/base/single/editor/editor.multifile.less | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/less/base/single/editor/editor.multifile.less b/src/less/base/single/editor/editor.multifile.less index 6c954fd91..fea7b2e9e 100644 --- a/src/less/base/single/editor/editor.multifile.less +++ b/src/less/base/single/editor/editor.multifile.less @@ -11,10 +11,10 @@ } // 解决chrome下input type:file cursor设置为pointer无效的问题 - // https://stackoverflow.com/questions/1537223/change-cursor-type-on-input-type-file - input[type=file], /* FF, IE7+, chrome (except button) */ - input[type=file]::-webkit-file-upload-button { - /* chromes and blink button */ - cursor: pointer; - } + // https://stackoverflow.com/questions/1537223/change-cursor-type-on-input-type-file + input[type=file], /* FF, IE7+, chrome (except button) */ + input[type=file]::-webkit-file-upload-button { + /* chromes and blink button */ + cursor: pointer; + } } \ No newline at end of file