摘要:
有如下代码 <p class="text"> <span>H</span> <span>e</span> <span>l</span> <span>l</span> <span>o</span> </p> .text { display: block; text-align: center; fon 阅读全文
posted @ 2021-06-08 11:59
Syinho
阅读(519)
评论(0)
推荐(0)
摘要:
水平格式化有七个属性,分别是:margin-left,border-left,padding-left,width,padding-right,border-right,margin-right七个。其中只有margin-left,width,margin-right三个属性允许被设置为auto。 阅读全文
posted @ 2021-06-08 09:42
Syinho
阅读(224)
评论(0)
推荐(0)
摘要:
line-height与font-size之间的差值就是行间距。行间距除以二,将行间距的一半分别应用到内容区的顶部和底部。其结果就是该元素的行内框。 假设有以下样式: p{ font-size:16px; line-height:20px; } 那么行间距就是4px,字体上下分别延展2px的空白。如 阅读全文
posted @ 2021-06-08 09:16
Syinho
阅读(76)
评论(0)
推荐(0)

浙公网安备 33010602011771号