更改[否所选文件":

问题描述:

我有一个按钮选择文件如下(我用的玉,但它应该是相同的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:

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