- Add a border to the parent element
- Add padding to the parent element
- Add overflow:hidden to the parent element
Several ways to easily solve margin collapse
Guess you like
Origin blog.csdn.net/seimeii/article/details/130769094
Recommended
Ranking