vue中 用媒体查询 空置根节点字体大小
2024-10-14 12:01:07
在index.html中
<style>
@media all and (min-width: 0px) {
html{font-size: 20px;}/* 12*4.6 */
}
@media all and (min-width: 640px) {
html{font-size: 50px;}/* 14*4.6 */
}
@media all and (min-width: 768px) {
html{font-size: 53px;}/* 16*4.2 */
}
@media all and (min-width: 800px) {
html{font-size: 53px;}/* 16*4.2 */
}
@media all and (min-width: 1024px) {
html{font-size: 65px;}/* 18 *4.6*/
}
@media all and (min-width: 1100px) {
html{font-size: 65px;}/* 20 *4.6 */
}
@media all and (min-width: 1280px) {
html{font-size: 82px;}/* 22 *3.03*/
}
@media all and (min-width: 1366px) {
html{font-size: 83px;}/* 24 */
}
@media all and (min-width: 1440px) {
html{font-size: 83px;}/* 25 */
}
@media all and (min-width: 1680px) {
html{font-size: 87px;/* 28 */
}
@media all and (min-width: 1920px) {
html{font-size:100px;}/* 33 */
}
</style>
最新文章
- 分布式一致性算法--Paxos
- Selenium 功能总结大集合
- Count Complete Tree Nodes || LeetCode1
- c规范(1)
- nginx https http 共用
- 矩阵乘法 and BIOS loads MBR into 0x7C00?
- oldboy第十三天学习
- Cocos2d-x教程第(11)讲-利用遮罩(蒙版)CCLayerColor制作新手引导界面(上)
- 9、手把手教你Extjs5(九)使用MVVM特性控制菜单样式
- Zabbix通过SNMP监控多核CPU使用率时, 计算CPU平均使用率
- CF#418 Div2 D. An overnight dance in discotheque
- 从Word Embedding到Bert模型—自然语言处理中的预训练技术发展史(转载)
- Redis安装及使用
- 杭电ACM2014--青年歌手大奖赛_评委会打分
- WEB前端学习代码片段记录
- 九、JSP入门(2)
- 微信小程序上拉下拉刷新
- hdu 4069 垃圾数独
- Codeforces Beta Round #31 (Div. 2, Codeforces format)
- AJAX通过HTML请求C#一般处理程序
热门文章
- Weblogic CVE-2018-2894 漏洞复现
- Spring和junit测试之配置文件路径
- React Native(十一)&mdash;&mdash;删除事件以及刷新列表
- 《转》win7 安装ujson 出现的“error: Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27”
- Windows 系统提示“内存不足”的原因及解决方法
- 【linux】nginx options 跨域问题 请求HTTP错误405 用于访问该页的HTTP动作未被许可 Method Not Allowed
- nginx(二)----ubuntu14.04下启动或重启和关闭nginx
- Linux下重启mysql的时候出现 start: Job failed to start
- Web Service Client使用Microsoft WSE 2.0
- Mysql On Mac OS: Remove &; Install