1、新建HTML文件
2、创建p,div标签和文本
3、预览效果如图
4、display: inline把元素设置为内联元素
5、预览效果如图
6、display:inline-block把元素设置为内联元素
7、预览效果如图