Bootstrap v4 - responsive text

落花浮王杯 提交于 2019-12-20 07:24:29

问题


How to use responsive text in bootstrap v4? I tried:

@include media-breakpoint-up(sm) {
  .resp-text {
    font-size: 16px;
  }
}

@include media-breakpoint-up(lg) {
  .resp-text {
    font-size: 28px;
  }
}

but not working.


回答1:


there could be multiple reasons

  • ensure that you are using SASS with SASS Compiler if not then use normal media queries https://v4-alpha.getbootstrap.com/layout/overview/#responsive-breakpoints
  • if you are using SASS then ensure you have imported the correct mixins file to your core sass file.
  • if you think everything is perfect then compile sass files separately and post screenshot of the error so we can get it perfectly.


来源:https://stackoverflow.com/questions/45681390/bootstrap-v4-responsive-text

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!