gpt4 book ai didi

jquery - 从 SWF 上传按钮中删除虚线轮廓

转载 作者:太空宇宙 更新时间:2023-11-03 18:59:00 25 4
gpt4 key购买 nike

我在从 Firefox 中显示的上传 SWF 按钮中删除虚线焦点轮廓/边框时遇到了很大的麻烦。

enter image description here

我尝试将上传对象和按钮 CSS 设置为:

:focus { outline:none; }
::moz-focus-inner { border:none; }

我也尝试使用 Uploadify 的 onDialogOpen 回调函数关注另一个元素,但仍然没有。

我如何摆脱这个烦人的轮廓?


我的 Uploadify CSS:

.uploadify {
position:relative; margin-top:10px; outline:none;
}
.uploadify-button {
color:#0CF; font-size:12px; text-align: center; border-top:solid 1px #CCC; border-left:solid 1px #CCC;
border-right:solid 1px #CCC; margin-bottom:0 !important; outline:none;
}
.uploadify:hover .uploadify-button {
text-decoration:underline;
}
.uploadify-button.disabled {
background-color:#D0D0D0; color:#808080;
}

我的 Uploadify JS:

$('#file_upload').uploadify({
'buttonText' : 'Select Files',
'width' : 90,
'removeCompleted' : false,
'fileSizeLimit' : '5MB',
'formData' : {'article_id': <? echo $article_id ?>, 'admin_id': '<? echo $_SESSION['admin_id'] ?>', 'referrer': 'Blog Setup'},
'swf' : 'uploadify/uploadify.swf',
'uploader' : 'uploadify/uploadify.php',
'onUploadStart' : function() {
$('#photos_option_loading').show();
},
'onQueueComplete' : function() {
$('#photos_option_loading').hide();
},
'onUploadError' : function(file, errorCode, errorMsg, errorString) {
alert('The file ' + file.name + ' could not be uploaded: ' + errorString);
}
});

我的 Uploadify HTML:

<input type="file" name="file_upload" id="file_upload">

最佳答案

这是一个存在于浏览器层面的特性。您对此无能为力。

关于jquery - 从 SWF 上传按钮中删除虚线轮廓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12678892/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com