/ tags/ css

# 硬件加速

3 min read

硬件加速(hardware acceleration)就是将浏览器的渲染过程交给 GPU 处理,而不是使用自带的比较慢的渲染器。这样就可以使得 animation 与 transition 更加顺畅。

# Sass的基础用法

5 min read

Sass is an extension of CSS, adding nested rules, variables, mixins, selector inheritance, and more.

# 网格布局Grid

5 min read

网格布局,Grid 布局,也叫栅格布局,是一种二维网格布局。

# BEM

2 min read

BEM 是 CSS 一种命名规范,BEM 是由 Block, Element, Modifier 组合成的缩写。

# CSS实现图形

2 min read

有一些形状可以通过纯 CSS 实现图形,如下拉三角型,下拉箭头等。。。

# CSS modules

2 min read

A CSS Module is a CSS file in which all class names and animation names are scoped locally by default.

# label与input对齐

2 min read

在默认情况下,label 跟 input 是自适应的,经常会出现不对齐的情况。

# BFC

8 min read

BFC(Block Formatting Context) 块级格式化上下文。它是块级布局发生的区域,也是浮动与其他元素交互的区域。

# 回流与重绘

7 min read

当渲染树中的元素尺寸,结构或属性发生改变时,需要浏览器重新渲染的过程称为回流( reflow ),而当渲染树中元素样式的改变,并不影响布局时,浏览器重新绘制它的过程称为重绘( repaint )