List of known “Safari on iPad” differences over “Desktop Safari”

后端 未结 17 2169
余生分开走
余生分开走 2020-11-29 16:42

In recently testing a web application on Windows/Mac desktop browsers - and then on an iPad I noticed various differences in Safari that I wasn\'t expecting. even though the

相关标签:
17条回答
  • 2020-11-29 17:25

    It also looks like iPad Safari has issues with elements with overflow:auto; that therefore should show scrollbars (test page with div's and iframe's).

    0 讨论(0)
  • 2020-11-29 17:26

    There appears to be a bug in iPad Safari where a CSS element with both a background image and a background color is rendered with a slight border in the color of the background color. It should fill with the background image all the way to the edge of the rendered element.

    0 讨论(0)
  • 2020-11-29 17:30

    iPad browser doesnt support file uploading(even if it supports it will useless as iPad does not have a standard File Browser). The file field appears with a Choose File button grayed out.

    0 讨论(0)
  • 2020-11-29 17:31

    I thought this might be useful: Apple's guide to preparing web content for the iPad

    Just been caught out by the position:fixed issue my self

    0 讨论(0)
  • 2020-11-29 17:32

    iPad Safari seems to have trouble handling background images in rare cases, showing weird lines of lower lying content.

    There's not a lot about this in Google (yet).

    0 讨论(0)
  • 2020-11-29 17:33

    Beside doesn't support scrollbar in TextAea, it seems that we can using javascript to make text in TextArea selected automatically too. This code will only move cursor to the end of text in TextArea.

    <div>
      <textarea id="text-embed-code" autocapitalize="off" multiline="">
    There is a fox running after chrome.
      </textarea>
      <button onclick="testSelectText(event);">select text</button>
    </div>
    <script>
      function testSelectText(e) {    
        var box = document.getElementById("text-embed-code");
        box.select();
        e.preventDefault();
        return false;
      }
    </script>
    
    0 讨论(0)
提交回复
热议问题