W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<!DOCTYPE html> <html> <head> <style> body { margin-left: 200px; background: #5d9ab2 url("/i/photo/tree.png") no-repeat top left; } .center_div { border: 1px solid gray; margin-left: auto; margin-right: auto; width: 90%; background-color: #d0f0f6; text-align: left; padding: 8px; } </style> </head> <body> <div class="center_div"> <h1>Hello World!</h1> <p>This example contains some advanced CSS methods you may not have learned yet. But, we will explain these methods in a later chapter in the tutorial.</p> </div> </body> </html>