选择器last-child失效问题

xiaoxiao2021-03-01  16

.form-group:last-child{ border: none; background-color: #CC2222; }

这样写没有效果,后来查到原因是后面跟着的那些input标签,把input标签去掉以后就有效果了,本坑了30分钟,特此记录

转载请注明原文地址: https://www.6miu.com/read-3350166.html

最新回复(0)