可能是因为:nth-child()的索引是从1开始的,而不是从0开始的。尝试将:nth-child(0)改为:nth-child(1)。另外,如果要设置透明度,应该使用opacity属性而不是filter属性。例如,将代码修改为:

.item:nth-child(1){opacity: 0.2;}

view wxfor=mulWeather wxkey=index class=item viewitemweatherview viewitemtemperatureview viewitemdateview viewitemdirectview view itemnth-child0opacity 02; 不起作用怎么回事

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

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