html - CSS增加网站上的所有字体

标签 html css fonts fill

好吧,我知道这是一个愚蠢的问题,但我找不到任何解决方案,我不知道是否有解决方案。

但是在我的网站上www.skivecore.com ,我试图让它响应从移动网站到 4k 屏幕的所有内容。现在我正在处理 4k 部分,文本太小了。我想知道,是否有一种方法可以将所有字体大小增加 200%,而无需重新定义每个类、每个 id,只是为了这样做?

同样在网站上,当您登录时,我想让东西漂浮在彼此旁边并填充空白空间,这似乎没有发生有什么办法可以实现!这只有CSS? Space not being filled帖子之间的所有巨大差距我希望它们被更多的帖子填补,但即使使用“float:left;”它没有填写。

@media (min-width: 3900px) {
    body {
        width:100%;
        font-size:200% !important;
    }
    main {
        width:2000px !important;
    }
    #mainbody {
        width:2000px !important;
    }
    #profilebody{
        width:1495px !important;
    }
    html{
        width:100%;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
    }
    #navgo{
        width:2000px;
    }
    #pic{
        width:2000px !important;
    }
    .colmid{
        width:1628px !important;
        overflow:hidden;
    } 
    .post{
        width: 45% !important;
        float:left;
        margin:10px !important;
    }
    #bigload{
        clear:both;
    }
    #postholder{
        clear:both;
    }
    .colmid:after {
        clear:both;
        content:" ";
        display:block;
    }
    #header{
        height:100px !important;
    }
    #headertools{
        height:100px !important;
    }
    .headertoolbox{
        width:2000px !important;
    }
    .searchbar{
        width: 1000px !important;
        height: 75px !important;
        font-size: 50px !important;
    }
    .searchicon{
        height:61px !important;
    }
    .newlogo{
        height: 91px !important;
    }
    .notiimg, #account div{
        width:80px !important;
        height:80px !important;
    }
}

最佳答案

如果我们假设您的正常小字体大小为 12px,您需要增加 Em 中的字体大小,因此您需要的符号是:

html{
        width:100%;
        overflow-y: scroll !important;
        overflow-x: hidden !important;
        font-size:12px;
    }    

body {
            width:100%;
            font-size:4em !important;
    }

请记住将 html 字体大小替换为您在普通屏幕上使用的基本字体大小。

关于html - CSS增加网站上的所有字体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29189165/

相关文章:

javascript - 如何使用样式化组件覆盖 React 组件样式?

html - 如何收缩水平居中的div

javascript - 是或否单选按钮显示不同的 DIV

javascript - 如何在 php 中使用 jquery 获取对话框中文本框的值,我将其显示为空白或未定义

css - Twitter Bootstrap 控制 div 不对齐

html - 字体在 photoshop 和网站上看起来不一样

android - 无法在 WebView 中使用自定义字体

css - 将 base64 编码的字符串解码为字体文件 - unicode 范围

jQuery 提交函数不调用 html5 验证

html - Img 调整到相同的宽度和高度