标题+视频滑块大于屏幕

时间:2017-04-22 19:36:02

标签: css header

非常感谢您对此的意见。我对CSS很新,所以无法弄清楚我在哪里出错了。

以下是该网站的链接:https://test.irinamccann.com

问题是:顶部标题或视频容器比屏幕大。其余的内容很好。

首先在较旧的Firefox上注意到,现在我看到当您将网站滚动到侧面时,右侧有一个大的白色部分。

只是不知道它来自哪里???

已添加的自定义CSS,可能导致问题(??)

.site-brand-inner {
position:absolute; height:100%; width:100%;
display: table;
}

.site-logo {
display: table-cell;
vertical-align: middle;
text-align:center;
}

#masthead {line-height:89px
}

1 个答案:

答案 0 :(得分:0)

您的Option Explicit Sub boldIt() Dim secondOne As String With Selection secondOne = .Cells(2).Value2 Application.DisplayAlerts = False .Merge Application.DisplayAlerts = True .Cells(1) = .Cells(1).Value2 & secondOne boldTxt .Cells(1), Len(.Cells(1).Value2) - Len(secondOne) + 1, Len(secondOne) End With End Sub Public Sub boldTxt(rng As Range, startPos As Integer, charCount As Integer) With rng.Characters(Start:=startPos, Length:=charCount).Font .FontStyle = "Bold" End With End Sub div的宽度为100%,绝对位置。因此它的宽度将是屏幕的宽度,但由于它有一些左边距,因此右边需要空间,这使得它可以向右滚动。

在第168行的索引页面中删除100%的宽度,这样你就可以了。

.site-brand-inner

enter image description here