更改[否所选文件": [英] Change the "No file chosen":
问题描述
我有一个按钮选择文件如下(我用的玉,但它应该是相同的HTML5):
I have a button "Choose file" as follows (I am using Jade but it should be the same as Html5):
input(type='file', name='videoFile')
在浏览器这表明与旁边无选择文件一文的按钮。我想无文件选择文本更改为其他内容,如无视频选择或选择一个视频,请。我跟着第一个建议这里:
In the browser this shows a button with a text next to it "No file chosen". I would like to change the "No file chosen" text to something else, like "No video chosen" or "Choose a video please". I followed the first suggestions here:
<一个href=\"http://stackoverflow.com/questions/5927212/i-dont-want-to-see-no-file-chosen-for-a-file-input-field\">I不希望看到一个文件输入字段'没有选择文件
但这样做并没有改变文本:
But doing this did not change the text:
input(type='file', name='videoFile', title = "Choose a video please")
谁能帮我找出问题出在哪里?
Can anybody help me figure out where the problem is?
推荐答案
我是pretty肯定你不能改变按钮的默认标签,他们在浏览器硬codeD(每个浏览器渲染的按钮图片说明自己的路)。看看这个按钮样式文章
I'm pretty sure you cannot change the default labels on buttons, they are hard-coded in browsers (each browser rendering the buttons captions its own way). Check out this button styling article
这篇关于更改[否所选文件&QUOT;:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!