我正在使用这个 library使用 Bootstrap 主题创建一个漂亮的输入文件按钮。
我在按钮上添加了一个光标指针,但是
我看不到整个按钮上的光标。
<button style="cursor:pointer" />
最佳答案
您可以使用代码:
$fileButton.on('click', function(){
$(this).next('input').trigger('click');
});
之后:
$fileButton = $('<button style="cursor:pointer" class="' + config.uploadButtonClass + '">' + config.uploadText + '</button>').insertBefore($self);
并将样式添加到:
.inputfile .btn{
position:relative;
z-index:2;
}
关于javascript - Bootstrap 输入文件游标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23245232/