0

I'm currently developing a website. I'm using an img in HTML file with dimensions 1466x530. It works fine on laptop (1366x768) but it is kind of zoomed in desktop (1024x768). Also the pages that were perfect in laptop resolution are zoomed in desktop. Could you help me please.

.center-shadow {background:url(../images1/center-shadow.png) center top no-repeat; }
4

1 回答 1

0

是的,它发生了,因为 1480x530 是 1024 分辨率的更大图像,因此它看起来是缩放的,对于您以像素为单位设置大小的字体也是如此,它在不同的屏幕上往往看起来不同的大小。

如果您想在所有屏幕上以相同的比例显示您的网站,您必须使用媒体查询或设置它在所有屏幕上看起来最好的方式。

谢谢马诺吉索尼

于 2012-07-16T12:34:36.547 回答