
欢迎关注路条编程的公众号,通过学习应用视觉设计这一系列文章,你将会逐步掌握页面版式、色彩、图形、动画和布局相关的基础知识。

<style type="text/css">body {line-height: normal; /* default */line-height: 2;line-height: 1em;line-height: 1rem;line-height: 200%;line-height: 20px;}</style>
<style type="text/css">body {font-size: 16px;line-height: 1.5;}</style>
<style type="text/css">html {font-size: 12px;}.remLHeight {font-size: 16px;line-height: 1.5rem; /* line-height 值为 12 * 1.5 = 18px */}.emLHeight {font-size: 16px;line-height: 1.5em; /* line-height 值为 16 * 1.5 = 24px */}</style>
<style type="text/css">body {font-size: 12px;}.pctLheight {font-size: 16px;line-height: 150%; /* line-height 值为 16 * 1.5 = 24px */}</style>
<style type="text/css">@media (min-width: 660px) {.wrapper {grid-template-columns: 1fr 1fr 1fr 1fr;}.text {grid-column: 2 / 4;grid-row: 1 / 3;}.text p {line-height: 1.9em;}.wide {grid-column: auto / span 2;}}</style>


重要提示:示例效果预览,请访问 https://www.icoderoad.com , 完整代码查看及下载,请访问 https://github.com/icoderoad/demo。
今天就讲到这里,如果有问题需要咨询,大家可以直接留言或扫下方二维码加入学习社群,我们会尽力为你解答。



作者:路条编程(转载请获本公众号授权,并注明作者与出处)
文章转载自路条编程,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




