【代码笔记】Web-CSS-CSS Margin(外边距)

笑着哭i 提交于 2020-03-25 12:00:16

3 月,跳不动了?>>>

一,效果图。

 

二,代码。

 

复制代码
<!DOCTYPE html>
<html> <head> <meta charset="utf-8"> <title>CSS Margin</title> <style> p{ background-color: yellow; } p.margin{ margin: 100px 50px; } </style> </head> <body> <p>This is a paragraph with no specified margin</p> <p class="margin">this is a paragrapth with specified margins.</p> </body> </html>
复制代码

 

 

参考资料:《菜鸟教程》

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!