当前位置:首页 > Web开发 > 正文

img { border : 0 ; } ol

2024-03-31 Web开发

一、盒子中文字控制:

  1.text-align: center; /*可以让盒子内容(文字 行内元素 行内块元素)居中对齐*/

二、让盒子程度居中对齐:

  要领1.margin: 0 auto; /*通俗写法 0 auto  上下是 0  摆布是auto  程度居中对齐 */

  要领2. margin-left: auto;   margin-right: auto; /*自动充塞*/

  要领3.margin: auto; /* 上下摆布都是auto*/

来源:第五天  02外边距合并

一、css初始化

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, p, blockquote, th, td { margin:0; padding:0; } body { font-size:12px; color:#666; font-family:Verdana, Microsoft YaHei, Simsun; background:#fff; line-height:24px; } fieldset, img { border:0; } ol, ul { list-style:none; } h1, h2, h3, h4, h5, h6{ font-size:100%; } em { font-style:normal; } input, button, select, textarea { outline:none; } textarea { resize:none; } p{ text-align:justify; text-justify:distribute;}

006.前端开发常识,,前端根本CSS(2020-01-21)

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/31199.html