html5 视频固定位置,仅适用于HTML5视频背景的位置:固定;不过,我不希望它与页...

所以滚动,我有这样的事情,一个体面的有点反应HTML5背景:仅适用于HTML5视频背景的位置:固定;不过,我不希望它与页

.video {

position: fixed;

top: 50%;

left: 50%;

min-width: 100%;

min-height: 100%;

width: auto;

height: auto;

z-index: -100;

transform: translateX(-50%) translateY(-50%);

-webkit-filter: blur(3px); //change the value according to what suits the best

-moz-filter: blur(3px); //change the value according to what suits the best

-o-filter: blur(3px); //change the value according to what suits the best

-ms-filter: blur(3px); //change the value according to what suits the best

filter: blur(3px); //change the value according to what suits the best

overflow: hidden;

}

.margin {

margin-top: 400px;

}

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

Some Content

所以,我的问题是,如果我改变位置:固定位置:绝对,它将变成无响应。但是,我不希望视频滚动页面... 怎么办? 其他职位如position:static是一团糟。

如果您从固定位置更改位置,则可以在较小的屏幕尺寸上看到垂直滚动条。

编辑: 如果您将其布局/视图更改为“正确”,则此问题仅在codepen上可见,因此HTML/CSS/Java框位于右侧,预览位于左侧(而非最初顶部和底部布局)。奇怪的。

2015-08-15

lastnoob

+0

你是什么意思的响应? –

+0

检查codepen。改变位置:固定;定位:绝对;您可以在调整窗口大小时看到水平滚动条。 –

+0

不在我的浏览器中^^,您使用哪个浏览器? –

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值