javascript - 如何更改瀏覽器默認(rèn)字體大小
問(wèn)題描述
再做移動(dòng)端開(kāi)發(fā)時(shí)發(fā)現(xiàn)字體大小比較小;但是怎么設(shè)置都沒(méi)有效果;請(qǐng)問(wèn)怎么更改默認(rèn)字體大小
問(wèn)題解答
回答1:注意這幾個(gè)問(wèn)題: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. linux - 編譯時(shí)提示頭文件#include <mysql/mysql.h>不存在,百度之后也沒(méi)解決2. java - yuicompressor-maven-plugin 合并可用卻不壓縮, 哪配置不對(duì)?3. javascript - immutable配合react提升性能?4. node.js - webpack --watch以后報(bào)錯(cuò)env: node: No such file or directory5. javascript - nodejs的列表不能往中間插入數(shù)據(jù)嗎?6. html頁(yè)面中怎么將兩個(gè)點(diǎn)之間的距離用直線連接起來(lái)?7. java - Spring +Mybatis 事務(wù) 不能回滾8. node.js - 微信小程序有自己的ws協(xié)議,用nodejs的話,還需要nginx干嘛呢9. css3 - 如何出現(xiàn)橫向捲軸?10. JAVA 版本問(wèn)題?
