Why the margin-left fails in the two different resolutions in the above picture
That’s not invalid, that’s overwritten. Look at the above img:nth-child(3)
img:nth-child(3)
is covered because you wrote the @media query @media can set different styles for different screen sizesIn the second picture, the effective margin-left:40
That’s not invalid, that’s overwritten. Look at the above
img:nth-child(3)
is covered because you wrote the @media query![](http://img.php.cn/upload/image/000/000/000/ec3972acdc753439a1cb3001eed584b5-0.png)
@media can set different styles for different screen sizes
In the second picture, the effective margin-left:40