glyphicon输入错误的bootstrap angularjs

时间:2016-11-29 16:43:47

标签: angularjs twitter-bootstrap glyphicons

我有一点问题,当我想要外化我的输入时,我的glyphicon的位置是错误的,但我不知道为什么。

<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>

1 个答案:

答案 0 :(得分:0)

如果这是glyphicon的位置放置问题,我建议添加这个CSS:

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

您必须使用左上角和左上角才能将​​其移动到您需要的位置。