From 088d07908d556efee2c8af5b6add32d08713aad7 Mon Sep 17 00:00:00 2001 From: Kira Date: Thu, 29 Oct 2020 17:39:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3chrome=E4=B8=8Binput?= =?UTF-8?q?=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