【问题标题】:how to remove unwanted box in ui-select?如何删除 ui-select 中不需要的框?
【发布时间】:2015-04-01 09:16:27
【问题描述】:

使用 Angular 和多用户界面选择,选择框会显示一个不需要的“额外”框(见图)。我怎样才能删除它?

代码:

      <ui-select multiple ng-model="definition.attachments" theme="bootstrap">
        <ui-select-match >{{$item.name}}</ui-select-match>
        <ui-select-choices repeat="template.id as template in templates">{{template.name}}</ui-select-choices>
      </ui-select>

【问题讨论】:

  • 检查元素类然后在css中添加display:none
  • 你能给我plunkker代码吗?

标签: javascript css angularjs twitter-bootstrap ui-select


【解决方案1】:

这很可能是由于未能将select.css 文件包含在您的index.html 文件中造成的。将以下内容添加到 index.html 中的 &lt;head&gt; 标记中:

<link rel="stylesheet" href="path/to/select.css"/>

【讨论】:

  • 我已经搜索了好几天了......丢失的样式表是原因。你征服了我的心......
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-09-15
  • 1970-01-01
  • 2021-09-08
相关资源
最近更新 更多