如何更改“文件上传”对话框的标题在浏览器中? [英] How to change "File Upload" dialog's Title in a browser?

查看:154
本文介绍了如何更改“文件上传”对话框的标题在浏览器中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在IE或FireFox等常用浏览器中更改文件上传对话框的标题?

i.stack.imgur.com/qAgb4.pngalt =在这里输入图片描述>



解决方案

检查文档页我找不到这样的事情...我猜这是不可能的。



控件类型 部分,我们找到 input [type ='file'] ,描述为:


文件选择

这种控制类型允许用户选择文件,以便
的内容可以用表单提交。使用 INPUT 元素
来创建一个文件选择控制。


然后我们检查 输入元素 ,我们找到一个使用输入的不同类型的元素列表



也有文件类型:


文件
$ b 创建 file select 控件。用户代理可以使用值
的值属性作为初始文件名。

所以,总之这是不幸的不可能的。




您可以选择的替代方法是使用在HTML内打开的弹出窗口:

  ------------------------- -------------<  - 整页
| |
| |
| | ---------------- | < ------------弹出
| |您的标题| |
| | ---------------- | |
| |在这里拖动文件| |
| | ---------------- | |
| |
| |
--------------------------------------


Is it possible to change the title of "File Upload" dialogs in any common browser such as IE or FireFox?

解决方案

Checking the documentation pages I cannot find such a thing... I guess this is not possible.

In the Control types from the Forms section we find the input[type='file'] that is described as:

file select

This control type allows the user to select files so that their contents may be submitted with a form. The INPUT element is used to create a file select control.

Then we check the Input elements and we find a list of the elements with different types that uses input:

There is the file type too:

file

Creates a file select control. User agents may use the value of the value attribute as the initial file name.

So, in conclusion this is unfortunately not possible.


The alternatives you can choose are to use drag and drop on a popup that is opened inside of the HTML:

-------------------------------------- <-- the full page
|                                    |   
|                                    |   
|       |----------------| <------------ The popup
|       | Your title     |           |   
|       |----------------|           |   
|       | Drag files here|           |   
|       |----------------|           |   
|                                    |   
|                                    |   
--------------------------------------

这篇关于如何更改“文件上传”对话框的标题在浏览器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆