<div class="input-group">
<span class="input-group-addon">文件:</span>
<input id="test1" type="file" class="form-control hidden"onchange="document.getElementById('test2').value = this.value">
<input id="test2" type="button" class="btn btn-default form-control" value="请选择文件" onclick="document.getElementById('test1').click()">
<span class="input-group-btn">
<button type="button" class="btn btn-primary" id="test3">认证</button>
</span>
</div>
用Bootstrap3 input file 做一个漂亮的文件框
猜你喜欢
转载自blog.csdn.net/sdalsdsdf/article/details/87859283
今日推荐
周排行