#rem替换px

相关标签
webgrid controller VB6 lisp dart语言 uploadify stream DB2数据库 PowerShell muduo Bash Tableau ububtu xcode5 ragel activeperl coreseek aptana GPT-4 gpt

vue中怎么使用rem替换px

2023-06-30 11:16:57

在Vue中使用rem替换px的步骤如下:1. 在`index.html`文件中设置根元素的字体大小为屏幕宽度的1/10。2. 在`main.js`文件中添加监听窗口大小变化的事件,并重新计算根元素的字...

0