设置line-height(行高)等于height(高度)使文本垂直居中。
您在配料清单中看到的row类将设置42像素高的块,该块适用于圆角矩形内的一叠行中的一行。
The row class, seen in the ingredient listing, sets a 42-pixel high block, suitable for a single line in a stack of lines inside a rounded rectangle.
这包括把类似p, header, li等块元素统一(或者部分分类)设置成站点的统一行高。
This includes things like setting the margins on block level elements like paragraphs, headers, and lists to the same value as (or some multiple of) the base line-height setting for the site.
应用推荐