【问题标题】:glyphicon input wrong bootstrap angularjsglyphicon 输入错误的引导 angularjs
【发布时间】:2016-11-30 22:07:39
【问题描述】:

我有一个小问题,当我想外化我的输入时,我的字形图标的位置是错误的,但我不知道为什么。

<div class="form-group"
                         ng-class="{ 'has-error has-feedback': comment_fields.$submitted && comment_fields.test.$invalid }">
                        <input-test  model-ua="$ctrl.test"></input-test>
                         <span ng-show="comment_fields.$submitted && comment_fields.test.$invalid"
                               class="glyphicon glyphicon-remove form-control-feedback"></span>
                    </div>

【问题讨论】:

  • 你的意思是字形图标在页面的不同位置吗?
  • 是的,我改变了我的方法,为什么嵌入到 ng 类 ifControl.$submitted 但不起作用

标签: angularjs twitter-bootstrap glyphicons


【解决方案1】:

如果这是字形图标的位置问题,我建议添加这个 CSS:

glyphicon-remove:before{
  top: 0px;
  left: 0px
}

您将不得不调整顶部和左侧的位置才能将其放置在您需要的位置。

【讨论】:

  • 感谢位置好!但我对外部化还有另一个问题。我有这个: 在我的全局模板中:
    数据绑定不起作用
  • @coco62 让我看看,让你知道。
猜你喜欢
相关资源
最近更新 更多
热门标签