CSS issue on iPad with table border

前端 未结 6 1726
终归单人心
终归单人心 2020-12-28 09:24

I have a CSS problem when the html page is rendered on iPad. Everything works good in other browsers. The problem is that I get a small space between the cells in my tables

6条回答
  •  天涯浪人
    2020-12-28 09:47

    Zheileman's solution worked for me and now my tabs with CSS image backgrounds look correct on iPad. View the top menu tabs on http://www.meishapersonaltrainer.com on an iPad for an example of the fix in action.

    My PHP which performs the detection and adds the META looks like this

    if (isset($_SERVER['HTTP_USER_AGENT']))
    {
        $ua = strtolower($_SERVER['HTTP_USER_AGENT']);
        if (strpos($ua, 'ipad') !== false || strpos($ua, 'ipod') !== false ||strpos($ua, 'iphone') !== false)
        {
            print '';
        }
    }
    

提交回复
热议问题