【发布时间】:2020-11-27 11:37:59
【问题描述】:
我正在尝试使用react 的样式组件更改拇指的背景颜色,但我不知道如何,似乎无法得到它。我的样式组件如下所示:
const InputVolume = styled.input`
::-webkit-slider-runnable-track {
width: 100%;
height: 4px;
cursor: pointer;
box-shadow: 0px 0px 0px #000000, 0px 0px 0px #0d0d0d;
background-color: #FFFFFF;
border-radius: 25px;
border: 0px solid #000101;
};
&:focus::-webkit-slider-runnable-track {
background: #D78E91;
};
::-webkit-slider-thumb {
background-color: #FFFFFF;
}
`;
【问题讨论】:
标签: css reactjs react-native styled-components