Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 为什么iPad4和iPadMini在网页显示上存在差异?_Html_Css_Ipad_Media Queries_Responsive - Fatal编程技术网

Html 为什么iPad4和iPadMini在网页显示上存在差异?

Html 为什么iPad4和iPadMini在网页显示上存在差异?,html,css,ipad,media-queries,responsive,Html,Css,Ipad,Media Queries,Responsive,我将iPad和iPad mini的媒体查询用作: @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : portrait) @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : landscape) 问题1:

我将iPad和iPad mini的媒体查询用作:

@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : portrait) 
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation : landscape)
问题1:在横向模式下,我观察到渲染的不同,在iPad中,UI元素按预期呈现,而iPad Mini则重叠呈现

HTML代码片段

<div class="desktopContentFooter">
        <span class="hotline">You can also reach us on our Something hotline number XXXXXXXXXXX</span>
        <p class="copyright">&copy;Something (CRN: XXXXXXXX) All Rights Reserved
            <span class="desktopfooterLink">
                <a href="http://www.example.com" target="_blank" rel="noopener" title="What is Something>What is Something</a> &nbsp;|&nbsp;
                <a href="privacy-policy.html" title="Privacy Policy">Privacy Policy</a> &nbsp;|&nbsp;
                <a href="tnc.html" title="Terms &amp; Conditions">Terms &amp; Conditions</a>
            </span>
        </p>
    </div>
问题2:在iPad迷你版中,我看到屏幕放大的水平和垂直滚动条(我添加了meta标记“
”),这似乎是另一个问题


请建议处理这些情况的方向

您的元标记是正确的。但由于不同设备的DPI/像素密度不同,因此应使用以下设备:

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio: 1) {

    /*** STYLES GO HERE ***/

}
请务必查看此链接:

@media only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)
and (-webkit-min-device-pixel-ratio: 1) {

    /*** STYLES GO HERE ***/

}