加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 使用Bootstrap 3.1修复Firefox文件输入?

发布时间:2020-12-18 00:15:34 所属栏目:安全 来源:网络整理
导读:Firefox上文件选择器中的浏览按钮使用Bootstrap 3.1扩展到其边框 div class="panel" role="form" div class="container-fluid form-horizontal" div class="row form-group" div class="col-xs-12" input type="file" class="form-control" / /div /div /div
Firefox上文件选择器中的浏览按钮使用Bootstrap 3.1扩展到其边框
<div class="panel" role="form">
    <div class="container-fluid form-horizontal">
        <div class="row form-group">
            <div class="col-xs-12">
                <input type="file" class="form-control" />
            </div>
        </div>
    </div>
</div>

这是小提琴:http://jsfiddle.net/vFt5K/

有人有这个优雅的解决方案吗?

解决方法

添加
.form-control {
    height: auto;
}

到你的css将解决你的问题 – 我会把它标记为一个额外的类,以确保它不干扰任何其他的。

<input type="file" class="form-control my-form-control" />

.form-control.my-form-control {
    height: auto;
}

JSFiddle

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读