热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

应用ng-repeat后从输入中删除样式-Stylesremovedfrominputafterapplyingng-repeat

Ihaveathislist,andwheniuseng-repeattheclassnotappliedtothecheckbox.我有一个这个列表,当我使用ng

I have a this list, and when i use ng-repeat the class not applied to the check box.

我有一个这个列表,当我使用ng-repeat时,该类不适用于复选框。

  • The list should look like all countries check box. Help plz.

    该列表应该看起来像所有国家/地区复选框。帮助PLZ。

    2 个解决方案

    #1


    0  

    Could it be your html is not structure correctly? The input element should have a close slash

    可能是你的html结构不正确吗? input元素应该有一个斜线

    
    

    #2


    0  

    I find that the style applied before the input is created by the ng repeat, so the new created input did not take the style.

    我发现在输入之前应用的样式是由ng repeat创建的,因此新创建的输入没有采用样式。


    推荐阅读
    author-avatar
    壮壮由之妈_245
    这个家伙很懒,什么也没留下!
    PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有