如图,我想的指示的位置
相关代码:
.main-tabs {
position: fixed;
bottom: 0;
z-index: 99999;
width: 100%;
}
但是不知道为什么fixed没有相对窗口定位的,而是基于父元素定位的...
如图,我想的指示的位置
相关代码:
.main-tabs {
position: fixed;
bottom: 0;
z-index: 99999;
width: 100%;
}
但是不知道为什么fixed没有相对窗口定位的,而是基于父元素定位的...
13 回答13.1k 阅读
8 回答3k 阅读
3 回答1.5k 阅读✓ 已解决
2 回答5.3k 阅读✓ 已解决
5 回答1.6k 阅读
7 回答2.3k 阅读
3 回答2.4k 阅读✓ 已解决
fixed本身是相对于窗口定位的,只有父级元素有transform属性时会影响它