我已经构建了一个自定义的select组件,该组件中的问题在CSS上。我面临的问题是
我尝试过的:codesandbox。
you can try to use display table-cell and vertical-align: middlel const CustomSelectContainer = styled.div` display: table-cell; .... vertical-align: middlel; `;