📜  使段落适合 div - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:41.191000             🧑  作者: 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;
}