lib-flexible 影响 fixed 定位
高洛峰
高洛峰 2016-11-04 11:13:57
0
1
877

最近一个项目中引用了 flexible.js,发现了一个问题:我需要在屏幕正中央显示一个提示窗,于是使用了 position: fixed 定位,结果发现提示窗并未出现在窗口正中央,而是网页正中央,而且会随着网页滚动。

于是我进行了测试,截图如下:发现确实 fixed 定位的元素尺寸都是按照 body 来的,请问有遇到类似问题的吗?这是什么原因导致的呢?

122.png

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

répondre à tous(1)
三叔

position: fixed;left:0;top:0;right:0;bottom:0;

Derniers téléchargements
Plus>
effets Web
Code source du site Web
Matériel du site Web
Modèle frontal
À propos de nous Clause de non-responsabilité Sitemap
Site Web PHP chinois:Formation PHP en ligne sur le bien-être public,Aidez les apprenants PHP à grandir rapidement!