angularjs UI select 多选后页面闪动的解决方案
来源:互联网 发布:js 定义对象属性 编辑:程序博客网 时间:2024/06/05 08:20
.ui-select-multiple.ui-select-bootstrap { height: auto; min-height: 34px; /* padding: 3px 3px 0 3px;*/ padding: 4px 4px 3px 4px;}.ui-select-multiple.ui-select-bootstrap input.ui-select-search { background-color: transparent !important; /* To prevent double background when disabled */ border: none; outline: none; height: 1.666666em; margin-bottom: 3px; position: absolute;}
1.在
ui-select-multiple.ui-select-bootstrap input.ui-select-search下添加 position:absolute;
2.在
ui-select-multiple.ui-select-bootstrap下添加 min-height:34px;
这个高度的值是根据form-control的高度来确定的
<div class="row"> <div class="col-md-3"> <label>label名</label><br /> <input type="text" class="form-control" placeholder="" ng-model="name" required> </div> <div class="col-md-8"> <label>label名</label> <ui-select multiple ng-model="aaa.selected" theme="bootstrap" search-enabled="false" close-on-select="false" ng-disabled="!data "> <ui-select-match placeholder=""> {{$item.name}}</ui-select-match> <ui-select-choices repeat="item in data | filter: $select.search"> <div ng-bind-html="item.name | highlight: $select.search"></div> </ui-select-choices> </ui-select> </div> </div>
https://github.com/angular-ui/ui-select/issues/533
参考这个得到的灵感
阅读全文
0 0
- angularjs UI select 多选后页面闪动的解决方案
- 页面title的闪动效果
- AngularJs ui select 禁止search
- angularjs ui-select 如果select的内容为空 则禁止点击
- AngularJs根据访问的页面动态加载Controller的解决方案
- 【Android UI】自定义TextView实现动态的文字闪动效果
- angularjs页面切换动画(ui-view)
- Angularjs 页面切换动画(ui-view)
- 位图绘制后拖放窗口时闪动现象的解决方案
- angularJS的选择框select
- angularJS的select(选择框)
- 厌倦了闪动的页面?来试试 javascript+WebService 吧!
- 解决Chrome在应用transition时页面闪动的问题
- angularjs ui-select如何设置默认选中值
- angularjs-ui-router的使用
- AngularJS的UI-Router学习
- 关于AngularJS的ui-router
- 用于AngularJS的UI路由器
- C++类继承:子类调用父类的构造函数
- mybatis 自增主键配置
- maven项目,多个依赖,打成一个可执行jar包,可根据profiles进行打包,出现的Could not find or load main class的解决方法。
- python 模块与包
- 图像处理之计算二值连通区域的质心
- angularjs UI select 多选后页面闪动的解决方案
- linux用户组
- hjr-JAVA工作日记(四):Spring-boot和MQ-ActiveMQ +JMS
- MYSQL使用索引的方法
- 微信小程序开发 | 官方问答精选
- 只是简单做一个开始
- 混淆代码总结
- html5图库拍照分离及语音录制播放调研
- 防火墙的学习2-双向NAT