简体   繁体   English

iPad上的CSS网站问题

[英]CSS website issues on iPad

Very strange thing happening on iPad2 safari browser. iPad2野生动物园浏览器上发生的事情很奇怪。

The following page (homepage) is cutting off the far right top nav link. 下一页(首页)切断了最右上角的导航链接。 It should say "Request a quote", but cuts off at "Requ". 它应该说“请求报价”,但以“ Requ”为准。

Plus, the page is not auto resizing to fit the iPad screen properly as normal. 另外,页面无法自动调整大小以正常适应iPad屏幕。

Site URL: www.skiplan.co.uk 网站网址: www.skiplan.co.uk

I have tried using the viewport meta tag, but it just makes it worse. 我已经尝试过使用视口元标记,但这只会使情况变得更糟。

Any ideas? 有任何想法吗? I just can't see any issues in firebug. 我只是在萤火虫中看不到任何问题。

Note: the crappy online iPad emulators show it fine - it's happening on the real/physical iPad2 注意:糟糕的在线iPad仿真器可以很好地显示它-发生在实际的iPad2上

The iPad's viewport acts as if it is 960px wide, so your site is bigger than its screen. iPad的视口的作用就像是960像素宽,因此您的站点大于其屏幕。 The viewport meta tag is needed to get it to scale correctly, though you might have to play around to get it right. 需要视口元标记以使其正确缩放,尽管您可能需要四处寻找正确的位置。

The other alternative is to use media queries to design a smaller version for smaller screens. 另一种选择是使用媒体查询为较小的屏幕设计较小的版本。

My advice would be to always have a 960px version - 1020px is not a popular width for a reason! 我的建议是始终使用960px版本-1020px并不是一个受欢迎的宽度,这是有原因的!

You are most likely using CSS styles like percentages, which break your design later on the iPad as it adapts to the display size container (max dimensions). 您很可能会使用百分比之类的CSS样式,该样式稍后会在iPad上中断设计,因为它适应了显示尺寸容器(最大尺寸)。

Most commonly I see this when people define a box/container in px but font/etc in %' or em`. 当人们在px定义框/容器,而在%' or em`中定义字体/等时,我通常会看到这种情况。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM