首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:CSS 参考手册
TRY RUN / 在线示例
CSS 参考手册 使用继承值
CSS 参考手册 使用继承值
源代码
运行
<!DOCTYPE html> <html> <head> <style> body {display:inline} p {display:inherit} </style> </head> <body> <p>These two paragraphs generates inline boxes, and it results in</p> <p>no distance between the two elements.</p> </body> </html>
运行结果