源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> <style> div ~ p { background-color: yellow; } </style> <p>Paragraph 1.</p> <div> <code>Some code.</code> <p>Paragraph 2.</p> </div> <p>Paragraph 3.</p> <code>Some code.</code> <p>Paragraph 4.</p> </head> <body> <p>段落 1.</p> <div> <code>一些代码.</code> <p>段落 2.</p> </div> <p>段落 3.</p> <code>一些代码.</code> <p>段落 4.</p> </body> </html>
运行结果