0

我已经完成了 HTML 网站的设计,并在 Windows 计算机上查看了适用于 Google Chrome、Safari、IE 9、Firefox 和 Opera 网络浏览器的结果。在 Android 设备(三星 S3)上查看我的网站时,结果与在台式 PC/MAC 上查看的结果相同,但在我的 iPhone 5 或我的朋友 iPhone 4s 上查看时,结果不同。有些文本被放大了,而有些则没有。我很困惑,我希望有人能尽快帮助我。

期待您的回复,并亲自了解我的意思:

 Visit http:///www.islandtoislandshipping.com

代码 HTML:

        <p id="intro">Island to Island Shipping and Removal LTD is a developing 
        organisation keen to<br />provide a high standard of service to its 
        customers. The company specialises in worldwide shipment of any household                 
        products or any goods, however, we<br />specialise directly to the Caribbean  
        (but that is not our limitation!). Island to Island Shipping and Removal LTD 
        provide an efficient, reliable and prosperous service<br />ensuring the highest  
        care is taken to in the process of delivery.</p>

        <img id="aim" src="imgs/aim.png" width="450" height="174" />

    <p>
    <br />As a company, we aim to provide our clients with all the 
    services they<br />require, from practical (shipping, removals) 
    to advise on packing materials<br />and household maintenance. 
    </p>

    <p id="stafftext">All our staffs are very friendly and courteous,<br />feel free to      
    discuss any queries you may have<br />and they will be happy to help. We are a<br   
    />dedicated team aiming to provide a stress<br />free experience for our customers.
    </p>

代码:

#intro{
position:relative;
margin-top:20px;
}

#aim{
margin-top:20px;
}

#stafftext {
position:relative;
margin-left:190px;
margin-top:90px;
 }

.staffimg {
margin-top:-100px;
}

#link1 {
position:relative;
margin-left:130px;
bottom:130px;
text-align:center;
font-size:9px;
 }
4

2 回答 2

1

iPhone 浏览器不喜欢分割边距或填充 css 样式。尝试使用连接边距/填充方式。

而不是写:

margin-top: 90px;
margin-left: 190px;

尝试:

margin: 90px 0 0 190px;

那是边距:右上左下;

于 2013-12-09T18:59:29.553 回答
1

我会尝试添加-webkit-text-size-adjust: 100%body您的 CSS 中。它将禁用 iOS 设备上的文本大小调整。

https://developer.mozilla.org/en-US/docs/CSS/text-size-adjust
http://blog.55minutes.com/2012/04/iphone-text-resizing/

于 2013-03-19T13:54:49.853 回答