Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
317 views
in Technique[技术] by (71.8m points)

javascript - 具有www和非www的URL呈现不同的屏幕分辨率?(URL with www and non-www renders different screen resolutions?)

I have long appreciated this community for its robust technical solutions (Thank you!).

(我一直很感谢这个社区提供的强大的技术解决方案(谢谢!)。)

But this is my first question so I hope I'm doing this correctly.

(但这是我的第一个问题,所以我希望我做的正确。)

(And, yes, I have searched for an answer to this question already.)

((是的,我已经在寻找这个问题的答案了。))

I am running into a weird problem (at least for me) regarding the same web page rendering into two different screen resolutions when a 'www' is used or when a 'non-www' is used.

(我遇到一个奇怪的问题(至少对我来说),因为使用“ www”或使用“ non-www”时,同一网页呈现为两种不同的屏幕分辨率。)

I assumed this had to do with some of my coding in my htaccess file but after commenting out any suspicious code, I'm not seeing any difference.

(我以为这与htaccess文件中的某些编码有关,但是在注释掉任何可疑代码之后,我看不出有任何区别。)

In addition, whatever is happening upfront ends up hitting two different @media breakpoints in my CSS causing a slight difference in how the page displays.

(另外,无论发生什么,最终都会在CSS中碰到两个不同的@media断点,从而导致页面显示方式略有不同。)

I have spent hours trying to resolve this so I'm now turning to the experts.

(我已经花费了数小时试图解决此问题,所以现在请专家咨询。)

Here is an example of what I'm getting (note same page with and without 'www'):

(这是我所得到的示例(请注意带有和不带有“ www”的同一页面):)

https://www.clearviewperformance.com/resources/of/optimalfit.htm (renders at 2041 x 1218) https://clearviewperformance.com/resources/of/optimalfit.htm (renders at 1837 x 1097)

(https://www.clearviewperformance.com/resources/of/optimalfit.htm (以2041 x 1218的价格出售) https://clearviewperformance.com/resources/of/optimalfit.htm (以1837 x 1097的价格出售))

My Chrome developer tools haven't provided any answers although I'm fairly new to using these tools and may be missing something.

(我的Chrome开发人员工具没有提供任何答案,尽管我刚开始使用这些工具,并且可能遗漏了一些东西。)

Thank you for any direction you can provide.

(感谢您提供的任何指导。)

  ask by Neil_Tinkerer translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...