javascript - 如何在调整大小时更改字体大小以适合其父框?

标签 javascript jquery css font-size onresize

Here is the link of what I've done
一些小分辨率的文本超出父框并被剪掉。如何解决?
使用 jQuery 会更可取,但我不介意 JavaScript。
更新
我想做的是,当调整页面大小时如何使文本适合其父框?

最佳答案

您可以使用 css 定位屏幕尺寸

@media screen and (min-width: 500px) and (max-width: 700px) {
body{
    font-size: x-small;
    }
}

@media screen and (min-width: 701px) and (max-width: 2000px) {
body{
    font-size: medium;
    }

}   

关于javascript - 如何在调整大小时更改字体大小以适合其父框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9987928/

相关文章:

Jquery - 第一次单击时更改背景位置,第二次单击时重置

javascript - 我们可以自定义 facebook likebox 吗?

html - 如何在内部div上方显示背景图像

javascript - 如何以完美的网格样式将不同大小的 DIV float 到左侧?

javascript - Fabricator.js : Is there a way to access material front matter from a child template?

javascript - Google map V3 拒绝我的请求

Javascript:回调函数是唯一允许以前瞻性方式引用外部变量的函数吗?

javascript - 无法控制嵌入式YouTube视频

jquery 属性后缺少 {

php - 带有ajax post的php css中的未定义索引