网站建设资讯

NEWS

网站建设资讯

DIVCSS网页布局中对段落进行排版的方法

DIV CSS布局中段落使用

10年积累的网站设计、做网站经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站制作后付款的网站建设流程,更有新宁免费网站建设让你可以放心的选择与我们合作。

标签,对于段落的上下左右的空白(缩进)可以使用margin标签定义样式,而对于段落内部的空白,我们可以用padding来实现。

DIV CSS网页布局中对段落进行排版的方法

margin属性

  DIV CSS布局中段落使用

标签,对于段落的上下左右的空白(缩进)可以使用margin标签定义样式。margin有上、下、左、右四个方向的定义,正常情况下,我们可以用一行来描述我们需要的样式。

  例如:margin:20px8px8px20px;

  此句分别表示了:margin-top;margin-right;margin-bottom;margin-left。

  四个数值的顺序分别是:上、右、下、左。是依时12:00开始的顺时针方向。

  如何上下的值一致,左右的值一致,我们可以再进行优化。

  可以写成:margin:20px8px;

  此句分别表示了:上下、左右。

  对于段落内部的文字对齐方式,一般用text-align,比如:text-align:center;等。

  下面以实例的形式来看不同的段落排版:

 
 
 
  1.  
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
  3.  
  4.  
  5.  
  6. webjx.com title> </li> <li><styletypestyletype="text/css"> </li> <li> <em>DIV</em>+<em>CSS</em><em>网页</em><em>布局</em><em>对</em>SEO<em>的</em>影响 DIV+CSS网页布局有很多值得学习的地方,那么它对SEO具有哪些影响呢,今天就SEO与DIVCSS布局的关系,我们向大家做一下简单介绍。 <p>2010-08-23 09:59:16</p> DIV+CSS SEO </li> </ol></pre> <br> 网页标题:DIVCSS网页布局中对段落进行排版的方法 <br> 本文链接:<a href="http://www.scjierui.cn/article/dhhpphc.html">http://www.scjierui.cn/article/dhhpphc.html</a> </div> </div> <div class="other"> <h3>其他资讯</h3> <ul> <li> <a href="/article/dccjsij.html">c语言用函数计算n的阶乘 c语言求n的阶乘函数</a> </li><li> <a href="/article/dccjces.html">sap系统薪酬操作手册的简单介绍</a> </li><li> <a href="/article/dccjcop.html">腾讯云服务器哪个镜像好用 腾讯云服务器镜像备份到本地</a> </li><li> <a href="/article/dccjsdj.html">linux常用命令在哪里 linux常用命令详解</a> </li><li> <a href="/article/dccjsio.html">sap系统pda怎么连接的简单介绍</a> </li> </ul> </div> </div> </div> <footer> <div class="footop"> <div class="wrap"> <div class="bottomrpw"> <div class="erp arp"> <dl> <dt>ADDRESS</dt> <dd class="address"> <i class="icon"></i> <span class="word">成都市青羊区锦天国际1号楼1002室</span> </dd> </dl> </div> <div class="erp arp"> <dl> <dt>TEL</dt> <dd class="phonum"> <i class="icon"></i> <span class="word en"> <a href="tel:18980820575">18980820575</a> </span> </dd> </dl> </div> <div class="erp crp"> <dl> <dt>OTHER</dt> <dd> <a class="word get-quote">获得报价与方案</a> </dd> <dd> <a href="#" target="_blank" rel='nofollow' class="word" title="付款方式">付款方式</a> </dd> </dl> </div> <div class="erp code-rp"> <dl> <dt>Wechat</dt> <dd class="code-wrap"> <span class="code"> <img src="/Public/Home/images/qr-code.jpg" alt="美图齐众微信公众号" /> </span> </dd> </dl> </div> </div> </div> </div> <div class="footerbot"> <div class="friendlinks"> <div class="wrap"> <ul class="rpl"> <li><a href="http://www.hjtau.com/" title="成都企业注销" target="_blank">成都企业注销</a></li><li><a href="https://www.cdxwcx.com/jifang/wenjiang.html" title="成都温江机房" target="_blank">成都温江机房</a></li><li><a href="https://www.cdcxhl.com/idc/yaan.html" title="雅安托管服务器" target="_blank">雅安托管服务器</a></li><li><a href="http://www.lowhcmsc.com/" title="实木楼梯维修" target="_blank">实木楼梯维修</a></li><li><a href="http://www.cdxwcx.cn/tuoguan/yaan.html" title="雅安机房托管" target="_blank">雅安机房托管</a></li><li><a href="http://www.cdhangkongwuliu.com/" title="成都航空物流" target="_blank">成都航空物流</a></li><li><a href="http://www.fihuq.com/" title="昆明车载方向盘装饰" target="_blank">昆明车载方向盘装饰</a></li><li><a href="http://www.scltwjx.com/ " title="公路打桩机" target="_blank">公路打桩机</a></li><li><a href="https://www.xwcx.net/hkcloud.html" title="香港云主机" target="_blank">香港云主机</a></li><li><a href="http://www.qhgpwr.com/" title="成都发电机组供应商" target="_blank">成都发电机组供应商</a></li> </ul> </div> </div> <div class="wrap"> <div class="copyright"> <span class="en">©2025</span> 青羊区美图齐众设计工作室(个体工商户)四川站<span class="en">ALL RIGHTS RESERVED.</span> <a rel="nofollow" href="https://beian.miit.gov.cn" target="_blank">蜀ICP备2025119604号-2</a> </div> </div> </div> </footer> <div class="fcwrap"> <ul class="rpl clearfix"> <li class="phone"> <a rel="nofollow" target="_blank" href="tel:18980820575"> <i class="icon"></i> <strong>18980820575</strong> </a> </li> <li class="qq"> <a rel="nofollow" target="_blank" href="https://wpa.qq.com/msgrd?v=1&uin=244261566&site=qq&menu=yes"> <i class="icon"></i> <strong>244261566</strong> </a> </li> <li class="back-top"> <a href="javascript:void(0)" rel="nofollow" class="back-to-top"> <i class="icon"></i> <strong>回到顶部</strong> </a> </li> </ul> </div> <!--nav--> <div class="n-Wrap"> <div class="navBar visble show"> <div class="barlogo"> <a href="/" rel="nofollow"> <img src="/Public/Home/images/logo1.png" alt="四川做网站" /> <img src="/Public/Home/images/logo2.png" alt="四川网站设计" /> </a> </div> <div class="bmenu"> <i class="bar-top"><span></span></i> <i class="bar-cen"><span></span></i> <i class="bar-bom"><span></span></i> <i class="bar-left"><span></span></i> <i class="bar-right"><span></span></i> </div> </div> <section class="fixmenu"> <div class="close-bar"> <i class="bar-left"><span></span></i> <i class="bar-right"><span></span></i> </div> <nav class="smph"> <ul> <li class="index-hrefs on"><a href="http://www.scjierui.cn/"><font>首页</font></a></li> <li><a href="/about/" rel="nofollow"><font>关于美图齐众</font></a></li> <li><a href="/service/" rel="nofollow"><font>服务范围</font></a></li> <li><a href="/case/" rel="nofollow"><font>案例展示</font></a></li> <li><a href="/solve/" rel="nofollow"><font>解决方案</font></a></li> <li><a href="/news/" rel="nofollow"><font>建站资讯</font></a></li> <li><a href="/contact/" rel="nofollow"><font>联系美图齐众</font></a></li> </ul> <div class="pwrap"> <span class="label">服务热线</span> <strong class="phone"><a href="tel:18980820575">18980820575</a></strong> </div> </nav> </section> </div> <!--end nav--> <script src="/Public/Home/js/hotcss.js"></script> <script type="text/javascript" src="/Public/Home/js/su_new.js"></script> </body> </html> <script> $(".con img").each(function(){ var src = $(this).attr("src"); //获取图片地址 var str=new RegExp("http"); var result=str.test(src); if(result==false){ var url = "https://www.cdcxhl.com"+src; //绝对路径 $(this).attr("src",url); } }); window.onload=function(){ document.oncontextmenu=function(){ return false; } } </script>