源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> p { text-align: center; color: red; } </style> </head> <body> <p>每个段落都受到样式的影响</p> <p id="para1">我是这样!</p> <p>还有我!</p> </body> </html>
运行结果