<!DOCTYPE html> <html> <head> <style> p { display: inline; } </style> </head> <body> <p>这两个段落会生成行内框,</p> <p>这会导致两元素间没有距离。</p> </body> </html>