我试图用其他图标替换选择框中的插入符号图标,然后我希望这个替换的图像在我点击选择框时旋转。单击时如何旋转选择框的插入符号图标?
我已经用另一个图标成功替换了插入符号。我被困在旋转替换的图像。
这里是我写到目前为止
select{
width: 50%;
height: 30%;
appearance : none;
-webkit-appearance : none;
background-image : url('https://cdn0.iconfinder.com/data/icons/slim-square-icons-basics/100/basics-08-128.png');
background-repeat: no-repeat;
background-size: contain;
background-position : right;
}
<select>
<option></option>
</select>
,好像我用变换的图像替换为背景图像的代码:旋转属性整个选择框会旋转。我应该如何旋转图标?
送到这里的代码只是一旦你试试这个代码是一个工作解决方案的兄弟http://stackoverflow.com/a/37351567/4323504 –
谢谢。我会检查它。 – Harish
谢谢@TheFlash它的工作:) – Harish