Replacing px with rem in vue project - usage method - 01

Mobile page adaptation, rem and vw adaptation scheme Base point: rem is relative to the font size of the root node. So no px; Root font: font size px; px: think of it as something like cm; Benchmark: 750 design draft (general UI designers give 750 design draft); tool vue cli: use scaffold to build vue front-end project Postcss: it is a ...

Added by crazy_carl on Sat, 22 Jan 2022 03:05:41 +0200

The solution of father son style isolation in heaven and earth -- a taste of postcss

Cause After the child applies the style, it is loaded. Because the parent and child apply the style with the same name, the style is overwritten thinking Take the parent application elementUi2.0 as an example and the child application elementPlus as an example Check the official document. The official document gives two solutions, which are ...

Added by zeberdeee on Mon, 08 Nov 2021 11:17:18 +0200