[英]How do i make sure that the contents are centered when zooming out/in
Can someone give a brief explanation on how i could make sure that the contents of my web page stay centered when zoomed out or in. For example, https://rocketman.learnwagtail.com/ when you zoom out on this dummy website the contents stay in the center and the margin adjusts itself automatically.有人可以简要解释一下我如何确保我的 web 页面的内容在缩小或缩小时保持居中。例如,当您在这个虚拟网站上缩小内容时, https://rocketman.learnwagtail.com/停留在中心,边距会自动调整。
please can someone explain this to me with some examples and also refer some videos to understand this even better.请有人可以通过一些示例向我解释这一点,并参考一些视频以更好地理解这一点。
thank you.谢谢你。
You should use你应该使用
margin-right:auto;
margin-left:auto;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.