Heim  >  Fragen und Antworten  >  Hauptteil

So ändern Sie die Standardschriftgröße des Browsers – Stapelüberlauf

Bei der mobilen Entwicklung stellte ich fest, dass die Schriftgröße relativ klein war, aber egal, wie ich sie einstellte, hatte sie keine Auswirkung. Wie kann ich die Standardschriftgröße ändern?

世界只因有你世界只因有你2674 Tage vor965

Antworte allen(3)Ich werde antworten

  • 我想大声告诉你

    我想大声告诉你2017-06-24 09:45:33

    注意这几个问题:
    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;}

    Antwort
    0
  • PHP中文网

    PHP中文网2017-06-24 09:45:33

    html设定一个字体大小 其他字体使用rem怎么样

    Antwort
    0
  • 代言

    代言2017-06-24 09:45:33

    1、在你的html文件里面加上<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    2、css文件设置body{font-size:16px;}

    Antwort
    0
  • StornierenAntwort