twitter bootstrap resize the text size on phone screen

萝らか妹 提交于 2019-12-12 13:24:23

问题


I am new to twitter bootstrap. I am hiding some <tr> on phone screen with the help of class="hidden-phone"

But I want to resize the shown text to fit to the screen

How can I resize the text in spans like below on phone screen?

<span>test test test test test</span>

回答1:


This is how you work with mobile viewport in twitter bootstrap (or any other solution for that matter)

@media (max-width: 480px) { 
        body {
          font-size: 11px;
        }

        .hidden-phone {
           display: block;
        }
    }


来源:https://stackoverflow.com/questions/17454594/twitter-bootstrap-resize-the-text-size-on-phone-screen

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