0
我正在使用twitter引导程序版本2.3.2处理表单,表单没有任何标签,每个输入字段都使用占位符。除了文件上传外,表单上的所有输入字段都显示占位符文本。不显示twitter引导程序文件上传文本的占位符
我已经尝试加入<input class="input-xxlarge" type="file" name="service_guide" placeholder="Upload image"/>
,但它似乎并不奏效。
下面是文件上传
<div class="fileupload fileupload-new" data-provides="fileupload">
<div class="input-append">
<div class="uneditable-input span3">
<i class="icon-file fileupload-exists"></i>
<span class="fileupload-preview"></span>
</div>
<span class="btn btn-file">
<span class="fileupload-new">Select file</span>
<span class="fileupload-exists">Change</span>
<input class="input-xxlarge" type="file" name="service_guide"
placeholder="Upload image"/>
</span>
<a href="#" class="btn fileupload-exists" data-dismiss="fileupload">Remove</a>
</div>
</div>
的HTML这是我的形式是什么样子
我真的会在这里得到任何帮助。
检查了这一点http://stackoverflow.com/questions/11685617/putting-placeholder-attribute-on-file -type-input-field – Dan
感谢Dan分享链接 – Baig