chrome中css的高度和宽度值太小。或者宽度是否太大?

时间:2022-09-08 20:20:00

I have a web site page that doesn't seem to be rendering properly for chrome in safari.

我有一个网站页面似乎没有正确渲染chrome in safari。

It appears it is rendering the width of the screen with twice as many pixels as other browsers. I suspect it may be the initial viewport settings, which work in all other browsers for windows and apple, except for the version of chrome on mac.

它似乎渲染屏幕的宽度是其他浏览器的两倍像素。我怀疑它可能是最初的视口设置,它适用于所有其他浏览器的Windows和苹果,除了Mac上的chrome版本。

I tried removing the viewport setting but that doesn't seem to work. I am using the latest version of Chrome, and if I have a window open in safari beside chrome you can see that chrome is rendering the screen as twice as wide, even though it takes up the same width.

我尝试删除视口设置,但似乎不起作用。我正在使用最新版本的Chrome,如果我在Chrome旁边的safari中打开一个窗口,你可以看到chrome正在将屏幕渲染为两倍宽,即使它占用相同的宽度。

Oops. I can't post an image, but you can see it here: http://straathof.acadnet.ca/test_chrome.jpg

哎呀。我无法发布图片,但你可以在这里看到它:http://straathof.acadnet.ca/test_chrome.jpg

If you would like to test it, you can visit the page here: http://straathof.acadnet.ca/reblend55

如果您想测试它,可以访问以下页面:http://straathof.acadnet.ca/reblend55

Any help for tracking down this problem would be appreciated. I have no idea where to look.

任何帮助追踪这个问题将不胜感激。我不知道在哪里看。

1 个解决方案

#1


0  

control-0 removed any zooms that had been added to the web page, which allowed it to render properly at the correct width. Apparently some months ago I zoomed in on something and, even though Chrome was removed reinstalled and reset, not to mention quit and restarted a whole lot of times, it still remembered that errant zoom value.

control-0删除了已添加到网页的任何缩放,这使其能够以正确的宽度正确渲染。显然在几个月前我放大了一些东西,即使Chrome被删除重新安装和重置,更不用说退出并重新启动了很多次,它仍然记得错误的缩放值。

annoying, but answered with someone elses suggestion.

很讨厌,但回答了别人的建议。

#1


0  

control-0 removed any zooms that had been added to the web page, which allowed it to render properly at the correct width. Apparently some months ago I zoomed in on something and, even though Chrome was removed reinstalled and reset, not to mention quit and restarted a whole lot of times, it still remembered that errant zoom value.

control-0删除了已添加到网页的任何缩放,这使其能够以正确的宽度正确渲染。显然在几个月前我放大了一些东西,即使Chrome被删除重新安装和重置,更不用说退出并重新启动了很多次,它仍然记得错误的缩放值。

annoying, but answered with someone elses suggestion.

很讨厌,但回答了别人的建议。