在css中,父子嵌套的元素会发生子元素margin失效的问题。比如:
<style>
.parent{
width: 100px;
height: 100px;
background-color: red;
margin-top: 100px;
在css中,父子嵌套的元素会发生子元素margin失效的问题。比如:
<style>
.parent{
width: 100px;
height: 100px;
background-color: red;
margin-top: 100px;