【问题标题】:White Space Appears Right of Browser Window When at Full Screen [closed]全屏时浏览器窗口右侧出现空白[关闭]
【发布时间】:2015-08-06 02:32:08
【问题描述】:

在全屏时,浏览器窗口的右侧和底部有一个巨大的空白矩形。有人知道如何摆脱这个吗?

JSFiddle:http://goo.gl/mTWfsj

【问题讨论】:

标签: html css


【解决方案1】:

你在.copyright2上有这种风格

.copyright2{

    position: relative;
    left: 17.5%;
}

p {
    width: 100%;
}

所以.copyright2 的宽度为:100% 并从left: 17.5% 开始

要修复它,请从 .copyright2 中删除 left: 17.5%

这里有一个最小的例子来说明:

.red{
  background: red;  
  height: 100px;
}

.blue{
  background: blue;  
  height: 50px;
  position: relative;
  left: 50px;
}
<div class="red">
  <div class="blue"></div>
</div>

【讨论】:

  • @Andrew 很高兴我的回答对您有所帮助,但请编辑您的问题,以便对未来的读者有所帮助。
猜你喜欢
  • 1970-01-01
  • 2019-12-19
  • 2013-06-10
  • 1970-01-01
  • 1970-01-01
  • 2013-01-11
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多