zoukankan
html css js c++ java
antd-select选项位置偏移问题解决
antd的select组件,选项位置会偏移
首先官方文档
所以可以设置
getPopupContainer={trigger => trigger.parentNode}
如果这个样子还是有偏移~,那么,再设置一下
.ant-select-dropdown {
position: relative;
left: 0 !important;
top:0 !important;
}
就是硬性的把他的偏移设置为0,看看这样有没有效果~
查看全文
相关阅读:
3.29上午
3.28下午
3.28上午
3.27下午
3.24的下午
2017.3.16上午学习内容
2017.3.15上午学习内容
2017.3.14下午学习内容
2017.3.14上午学习内容
2017.3.13下午学习内容
原文地址:https://www.cnblogs.com/tutuj/p/14314391.html
最新文章
4.12下午
4.12上午
4.11上午
4.11下午
4.10下午
2017.4.13下午
2017.4.13上午
2017.4.12下午
2017.4.11下午
2017.4.10下午
热门文章
2017.4.10上午
2017.4.7上午
3.31下午
3.30下午
3.29下午
3.28下午
3.31下午
3.30下午
3.30上午
3.29下午
Copyright © 2011-2022 走看看