📜  适合容器的 CSS 文本 - CSS 代码示例

📅  最后修改于: 2022-03-11 14:47:44.903000             🧑  作者: Mango

代码示例2
//The viewport-percentage lengths are relative to the size of the initial
//containing block. When the height or width of the initial containing block
//are changed, they are scaled accordingly.
//vw = (% of the viewport width). So using it will look like this:
p {
    font-size: 2.5vw;
}