展会信息港展会大全

CSS Margin 教程 android软件开发教程
来源:互联网   发布日期:2016-03-25 16:00:40   浏览:1559次  

导读:CSS Margin CSS Margin的CSS定义的空间周围的要素。 下面看个实例. html head style type=text/css p.margin {margin: 2cm 4cm 3cm 4cm} /style /head body pThis is a paragraph with no specified margins/p p class=marginThis is a paragraph with speci...

CSS Margin

CSS Margin的CSS定义的空间周围的要素。 下面看个实例.

<html>

<head>

<style type="text/css">

p.margin {margin: 2cm 4cm 3cm 4cm}

</style>

</head>

<body>

<p>This is a paragraph with no specified margins</p>

<p class="margin">This is a paragraph with specified margins</p>

<p>This is a paragraph with no specified margins</p>

</body>

再来实例二.

<html>

<head>

<style type="text/css">

p.topmargin {margin-top: 5cm}

</style>

</head>

<body>

<p>This is a paragraph with no margin specified</p>

<p class="topmargin">This is a paragraph with a specified top margin</p>

</body>

</html>

</html>

赞助本站

人工智能实验室

相关热词: 开发 编程 android

AiLab云推荐
展开

热门栏目HotCates

Copyright © 2010-2024 AiLab Team. 人工智能实验室 版权所有    关于我们 | 联系我们 | 广告服务 | 公司动态 | 免责声明 | 隐私条款 | 工作机会 | 展会港