我想让两个层横向贴在一起。
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> #div1{ width: 100px; height: 100px; background-color: #000000; } #div2{ width: 100px; height: 100px; background-color: #0000FF; } </style> </head> <body> <div id="div1"></div> <div id="div2"></div> </body> </html>