///'To make the last-child selector work, you need to include the .qq_row class in your CSS code. Additionally, to select the last 3 children, you can use the :nth-last-child() selector. Here is the updated CSS code://n//ncss//n.qq_row .qq_product_in_list {//n border-radius: 0px;//n border-top: 1px solid #F1F2F4;//n border-left: 1px solid #F1F2F4;//n border-right: 0px;//n border-bottom: 0px;//n}//n//n.qq_row .qq_product_in_list:last-child {//n border-left: none;//n background: red;//n}//n//n.qq_row .qq_product_in_list:nth-last-child(-n+3) {//n /* Your styles for the last 3 children here *///n}//n//n//nNote: The border-left: none; and background: red; styles will only apply to the last child of the .qq_row element. If you want to target the last child of each .qq_row element, you can remove the .qq_row selector from the .qq_product_in_list:last-child selector and add a new selector for .qq_row:last-child .qq_product_in_list:last-child.///


原文地址: http://www.cveoy.top/t/topic/poUm 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录