javascript - 如何更改瀏覽器默認(rèn)字體大小
問題描述
再做移動(dòng)端開發(fā)時(shí)發(fā)現(xiàn)字體大小比較小;但是怎么設(shè)置都沒有效果;請(qǐng)問怎么更改默認(rèn)字體大小
問題解答
回答1:注意這幾個(gè)問題:1、
<meta http-equiv='X-UA-Compatible' content='IE=edge, chrome=1'><meta name='viewport' content='width=device-width,initial-scale=1,user-scalable=0'>
2、
html, body, p, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {font-size: 12px;}回答2:
html設(shè)定一個(gè)字體大小 其他字體使用rem怎么樣
回答3:1、在你的html文件里面加上<meta name='viewport' content='width=device-width, initial-scale=1, user-scalable=no'>2、css文件設(shè)置body{font-size:16px;}
相關(guān)文章:
1. 運(yùn)行python程序時(shí)出現(xiàn)“應(yīng)用程序發(fā)生異常”的內(nèi)存錯(cuò)誤?2. spring-mvc - spring-session-redis HttpSessionListener失效3. 在mac下出現(xiàn)了兩個(gè)docker環(huán)境4. 利用IPMI遠(yuǎn)程安裝centos報(bào)錯(cuò)!5. 測(cè)試自動(dòng)化html元素選擇器元素ID或DataAttribute [關(guān)閉]6. javascript - 在 model里定義的 引用表模型時(shí),model為undefined。7. javascript - node得到req不能得到boolean8. python 正則表達(dá)式提取9. java - Spring boot 讀取 放在 jar 包外的,log4j 配置文件,系統(tǒng)有創(chuàng)建日志文件,不寫入日志信息。10. javascript - 最近用echarts做統(tǒng)計(jì)圖時(shí)遇到兩個(gè)問題!!

網(wǎng)公網(wǎng)安備