1

任何其他浏览器都不会显示嵌入的 SVG,如下所示带有滚动条。然而,Safari 确实如此,而且我似乎找不到摆脱它们的方法。有什么想法吗?

<!DOCTYPE html>
<head>
    <meta   http-equiv  ="Content-Type"
            content     ="text/html ; charset = utf-8"/>

    <title>La Bella - Ansbach</title>

    <style>
        html, body { margin : 0 ; padding : 0 ; height : 100% ; width : 100% ;overflow:hidden}
          iframe {overflow:hidden}

    </style>
</head>

<body style="margin:0px; padding:0px; overflow:hidden;">
    <script type    ="text/javascript"  src ="JS/WPL.js"></script>

    <object data    ="default.svg"      src     ="default.svg"
            type    ="image/svg+xml"    id      ="SVG"
            width   ="100%"             height  ="100%"
            scrolling="no"
            style   ="position : absolute ; width : 100% ; height : 100% ; overflow : hidden;overflow-x:hidden; overflow-y:hidden;-webkit-overflow-scrolling:touch">
    </object>
</body>

谢谢,提前。

4

0 回答 0