gpt4 book ai didi

css - Angularjs 和 Bootstrap ngclass 问题

转载 作者:太空宇宙 更新时间:2023-11-03 21:23:30 26 4
gpt4 key购买 nike

我得到了这个 fiddle http://jsfiddle.net/L60L3gv9/9/当我匹配表格中的元素时,它会突出显示它:

ng-class="{show: test==x.Country}"

而我期待在这个 fiddle 中出现类似的东西:

http://jsfiddle.net/nmcsr5x9/1/

但是对于最后一个 fiddle ,我必须在范围内声明其他变量。

知道为什么第一个 fiddle 会这样吗?

最佳答案

这是因为你使用了.show类。这将通过 Bootstrap 将您的 table-row 显示为 block 。

你有两个选择:

1. 使用另一个类名,例如.highlight

2. 添加display: table-row !important;.show

关于css - Angularjs 和 Bootstrap ngclass 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35270399/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com