Resizing Headings when Window Size Changes

前端 未结 2 1523
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 03:33

I\'m currently working on a website where I need to put some images and some heading and description will be going along with it. If the browser is full screen, the heading

2条回答
  •  深忆病人
    2021-01-20 04:18

    Bootstraps use css media queries to do that. Here is the documentation from bootstrap: http://getbootstrap.com/css/#grid-media-queries And here's a crash course in media queries: http://net.tutsplus.com/tutorials/html-css-techniques/quick-tip-a-crash-course-in-css-media-queries/

    To achieve what you want, you need to write something like this in your application.css.scss:

    @media (min-width: @screen-md) {
      h1{font-size: 14px}
    } 
    
    • "h1" should be replaced for the tag of the heading
    • you should check you're targeting to the correct min-width.

提交回复
热议问题