简体   繁体   English

屏幕调整中的网站调整

[英]website adjustment in screen res fitting

hi im new here in creating a website. 您好,我是在这里创建网站的新手。 I really cant figure out it how can I make an auto adjustment of my website were it could fit on different screen resolution and also when the window is resized to much smaller without overlaps of the content of the website? 我真的无法弄清楚,如果它可以适应不同的屏幕分辨率以及在将窗口调整为更小的尺寸而又不重叠网站内容的情况下,如何对网站进行自动调整? right now my screen resolution is 1680 x 1050, where I actually creating the website . 现在,我的屏幕分辨率是1680 x 1050,实际上是在该网站上创建的。

hope you can help me. 希望您能够帮助我。 thanks! 谢谢!

You most likely need to use what are called media queries : 您很可能需要使用所谓的media queries

@media screen and (max-width: 975px){
    body{...}
    div{...}
}

Read up on them at MDN MDN上阅读它们

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

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