ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~ <title>Document</title> <style> /* 兄弟元素之间:margin-bottom和margin-top重合,如果一个值较大,则取最大值。如一样,取中间值 */ .one{ width:100px; height:100px; background: red; margin-bottom: 100px; } .two{ width:100px; height:100px; background: yellow; margin-top:120px; } </style> </head> <body> <div class="one"> </div> <div class="two"> </div> ~~~