HTML/CSS: table font size different in mobile device

前端 未结 3 995
天命终不由人
天命终不由人 2021-02-07 16:12

I would like to have a simple website that works both on desktop and mobile browser, and encountered a weird (rookie) problem: when I have a table whose column texts are of diff

3条回答
  •  时光取名叫无心
    2021-02-07 16:38

    You need to consider setting the viewport of your application. To make a mobile-friendly web application, you will need to set this in your headers. You can do so by adding a tag between your tags. Here is an example:

    
        
    
    

    For a full description of what a viewport is and how it is used, you can visit the article Configuring the Viewport from Apple Developer as it was first introduced for Safari Mobile.

提交回复
热议问题