现在很多电脑的 分辨率还是1025*768,为了满足这写电脑查看网页时不会出现滚动条。

我们就需要将网页内容居中显示,页面两边做一些背景染色。在07里 很容易就可以实现。

在10中试了很多方法,总有些瑕疵

后来终于被我找到王道的了

在v4.master中添加

 <style type="text/css">
 body #s4-workspace{
  width:980px !important;
  overflow:visible;
  margin-left:auto;
  margin-right:auto;
  text-align:left;
  background-color:white;
  }
 
 body.v4master{
  text-align:left;
  overflow:auto;
  }

</style>
希望对各位有帮助。

相关文章:

  • 2021-05-20
  • 2021-06-16
  • 2022-12-23
  • 2021-11-05
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-09
  • 2022-01-18
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案