为什么ASPX网页的内容不固定&浏览器窗口调整大小时移动? [英] Why Contents of ASPX webpage are not fixed & moves when browser window resized ?

查看:110
本文介绍了为什么ASPX网页的内容不固定&浏览器窗口调整大小时移动?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



PFA我在aspx网站上使用的示例母版页。

< img src =https ://lh4.googleusercontent.com/-9iDLdlMMVys/VDO6OzrmsuI/AAAAAAAAFdM/dGQL5AH1OoU/w625-h499-no/sample.png>< / img>



当我调整浏览器窗口的大小时,我的网站的所有项目都会重新调整。像菜单栏,徽标,跟随我们图像所有向下或向上移动,甚至超过一圈,如果我减小窗口的大小。如下图所示:



< img src =https://lh6.googleusercontent.com/-3Cm4Jb7n3xE/VDO8LRY4XPI/AAAAAAAAFd0/RNa9ZSEb1Ac/w395-h346-no /sample1.png\"></img>

Plz帮我解决这个问题?



谢谢

Hello,

PFA the sample Master page which I am using in my aspx website.
<img src="https://lh4.googleusercontent.com/-9iDLdlMMVys/VDO6OzrmsuI/AAAAAAAAFdM/dGQL5AH1OoU/w625-h499-no/sample.png"></img>

When I resize the Browser window, all Items of my website gets reshuffled. Like Menu Bar, Logo, Follow Us Images all moves downwards or upwards, or even over lap, if I reduce the size of the window. As shown Below:

<img src="https://lh6.googleusercontent.com/-3Cm4Jb7n3xE/VDO8LRY4XPI/AAAAAAAAFd0/RNa9ZSEb1Ac/w395-h346-no/sample1.png"></img>
Plz Help me how to fix this problem?

Thanks

推荐答案

如果您不想要响应式设计,请设置主体元素的固定宽度(或者您想要修复的最外层容器:



CSS:

.outermost {width:980px!important;} / *把你喜欢的任何宽度放在这里* /



请注意,这确实是固定的,这样如果您的浏览器窗口低于该大小,您将在底部获得滚动条。
If you don't want responsive design, set the fixed width of the body element (or outermost container you want to have fixed:

CSS:
.outermost {width: 980px !important;} /* put any width you fancy here */

Note that this will indeed be fixed so that if your browser window goes under that size, you'll get scrollbars on the bottom.


这篇关于为什么ASPX网页的内容不固定&amp;浏览器窗口调整大小时移动?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆