<legend id='92fWq'><style id='92fWq'><dir id='92fWq'><q id='92fWq'></q></dir></style></legend>

        • <bdo id='92fWq'></bdo><ul id='92fWq'></ul>
      1. <small id='92fWq'></small><noframes id='92fWq'>

        <tfoot id='92fWq'></tfoot>
        <i id='92fWq'><tr id='92fWq'><dt id='92fWq'><q id='92fWq'><span id='92fWq'><b id='92fWq'><form id='92fWq'><ins id='92fWq'></ins><ul id='92fWq'></ul><sub id='92fWq'></sub></form><legend id='92fWq'></legend><bdo id='92fWq'><pre id='92fWq'><center id='92fWq'></center></pre></bdo></b><th id='92fWq'></th></span></q></dt></tr></i><div id='92fWq'><tfoot id='92fWq'></tfoot><dl id='92fWq'><fieldset id='92fWq'></fieldset></dl></div>

      2. 改变 &lt;h1&gt; 的大小响应引导时的标记

        Change size of lt;h1gt; tag when responsive Bootstrap(改变 lt;h1gt; 的大小响应引导时的标记)

              <tbody id='T6IwK'></tbody>

            <small id='T6IwK'></small><noframes id='T6IwK'>

              <legend id='T6IwK'><style id='T6IwK'><dir id='T6IwK'><q id='T6IwK'></q></dir></style></legend>
              • <bdo id='T6IwK'></bdo><ul id='T6IwK'></ul>
                <tfoot id='T6IwK'></tfoot>

                  <i id='T6IwK'><tr id='T6IwK'><dt id='T6IwK'><q id='T6IwK'><span id='T6IwK'><b id='T6IwK'><form id='T6IwK'><ins id='T6IwK'></ins><ul id='T6IwK'></ul><sub id='T6IwK'></sub></form><legend id='T6IwK'></legend><bdo id='T6IwK'><pre id='T6IwK'><center id='T6IwK'></center></pre></bdo></b><th id='T6IwK'></th></span></q></dt></tr></i><div id='T6IwK'><tfoot id='T6IwK'></tfoot><dl id='T6IwK'><fieldset id='T6IwK'></fieldset></dl></div>
                  本文介绍了改变 &lt;h1&gt; 的大小响应引导时的标记的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  <h1>标签在超小或小屏幕尺寸下,有什么办法可以改变它的文本大小吗?

                  Is there any way to change the text size of <h1> tag when it goes on extra small or small screen size?

                  因为 <h1> 有自己的默认尺寸,对于中号来说是正常的,但对于小号和超小号来说非常大.

                  Because <h1> has its own default size which is normal for medium size but very large for small and extra small.

                  当它变为小屏幕尺寸或超小屏幕尺寸时,我想更改该尺寸.

                  I want to change that size when it goes to small screen size or extra small screen size.

                  推荐答案

                  您可以创建一个自定义的 .css 文件(例如:site.css),然后使用 @media 在不同的屏幕尺寸.要在引导程序中覆盖 h1 类,您必须在引导程序之后包含您的自定义 css.下面是site.cssh1的例子:

                  You can create a custom .css file (for example: site.css) and then use @media to create different behavior on different screen size. To override the h1 class in bootstrap, you have to include your custom css after the bootstrap. Below is the example of h1 in site.css:

                  h1 {
                    /* Extra small devices (phones, less than 768px) */
                    font-size: 10px;
                  
                    /* Small devices (tablets, 768px and up) */
                    @media (min-width: 768px) {
                      font-size: 12px;
                    }
                  
                    /* Medium devices (desktops, 992px and up) */
                    @media (min-width: 992px) {
                      font-size: 16px;
                    }
                  
                    /* Large devices (large desktops, 1200px and up) */
                    @media (min-width: 1200px) {
                      font-size: 18px;
                    }
                  }
                  

                  这是bootstrap目前使用的@media规则,官方文档见这里.

                  This is the @media rules which bootstrap currently use, the official docs can be seen in here.

                  这篇关于改变 &lt;h1&gt; 的大小响应引导时的标记的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Crop the image using JavaScript(使用 JavaScript 裁剪图像)
                  How do I take code from Codepen, and use it locally?(如何从 Codepen 获取代码并在本地使用?)
                  Overlay HTML5 canvas over image(在图像上覆盖 HTML5 画布)
                  How i quot;writequot; an icon in the context canvas?(我如何“写作上下文画布中的图标?)
                  webkit css resize doesn#39;t work with canvas as child?(webkit css resize 不适用于儿童画布?)
                  Bootstrap grid won#39;t work using xs columns(引导网格无法使用 xs 列)

                  <small id='TdQ1m'></small><noframes id='TdQ1m'>

                      <bdo id='TdQ1m'></bdo><ul id='TdQ1m'></ul>
                      <tfoot id='TdQ1m'></tfoot>

                          <tbody id='TdQ1m'></tbody>

                        • <legend id='TdQ1m'><style id='TdQ1m'><dir id='TdQ1m'><q id='TdQ1m'></q></dir></style></legend>

                            <i id='TdQ1m'><tr id='TdQ1m'><dt id='TdQ1m'><q id='TdQ1m'><span id='TdQ1m'><b id='TdQ1m'><form id='TdQ1m'><ins id='TdQ1m'></ins><ul id='TdQ1m'></ul><sub id='TdQ1m'></sub></form><legend id='TdQ1m'></legend><bdo id='TdQ1m'><pre id='TdQ1m'><center id='TdQ1m'></center></pre></bdo></b><th id='TdQ1m'></th></span></q></dt></tr></i><div id='TdQ1m'><tfoot id='TdQ1m'></tfoot><dl id='TdQ1m'><fieldset id='TdQ1m'></fieldset></dl></div>