代码
提交代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .demo:after{ content: ''; display: block; clear: both; } .item{ float: left; } </style> </head> <body> <div class="demo"> <div class="item">慕</div> <div class="item">课</div> </div> <div class="">网</div> </body> </html>
运行结果