尝试找出允许一个父容器下的组使用":active"的最佳方法。造型。我有自己的类和这些按钮的东西,我可以看到我可以在btn标签中使用锚点,但不确定使用我自己的自定义CSS实现输入标记。
<div class="alertBtns">
<input type="button" class="naviaBtn naviaBlue" ng-click="alertShow = (alertShow == 2 ? -1 : 2)" value="outstanding swipes">
<input type="button" class="naviaBtn naviaBlue" ng-click="alertShow = (alertShow == 3 ? -1 : 3)" value="recent denials">
<input type="button" class="naviaBtn naviaBlue" ng-click="alertShow = (alertShow == 4 ? -1 : 4)" value="upcoming dates">
<input type="button" class="naviaBtn naviaBlue" ng-click="alertShow = (alertShow == 5 ? -1 : 5)" value="account alerts">
</div>