2014-09-02 79 views
0

我无法编辑此按钮,我尝试使用bootstrap javascript。这是我的代码示例。任何帮助将不胜感激我无法编辑我的<input type =“file”>标签

<html> 
    <head> 
     <script type="text/javascript" src="assets/js/bootstrap-filestyle.js"> </script> 
     <script> 
      $(":file").filestyle({input: false}); 
     </script> 
    </head> 
    <body> 
     <input type="file" class="filestyle" data-input="false"> 
    </body> 
</html> 
+5

你是什么意思? – tymeJV 2014-09-02 19:11:00

+0

只是使输入[类型=文件]清除或隐藏,并使用组合触发点击文件输入时接受按钮上的CSS样式。 – dandavis 2014-09-02 20:10:10

回答

0

我觉得你要做的是将文本“选择文件”替换为其他的东西;

如果是这种情况,请尝试以下语句。

对不起,没有足够的声望发表评论。

<input type='file' style='opacity: 0; width:90px; position: absolute; z-index:2'> 
<button class='btn-margin btn grey' style='z-index: 1;width:90px;cursor:pointer;'>Browse</button>"; 
相关问题