编辑你的代码:
<!DOCTYPE html> <html> <body bgcolor="yellow"> <h2>This is a heading</h2> <p>This is a paragraph.</p> <p>The old bgcolor attribute only works on the body element.</p> <p>For future proof HTML, use styles instead:</p> </body> </html>
查看结果:
phpxuexi.net
- 亲自试一试