html中单选框颜色怎么改,如何更改单选按钮的颜色?
侃侃無極
一種快速的解決方法是使用來覆蓋單選按鈕的輸入樣式:after,但是創建自己的自定義工具箱可能是更好的做法。? ? input[type='radio']:after {? ? ? ? width: 15px;? ? ? ? height: 15px;? ? ? ? border-radius: 15px;? ? ? ? top: -2px;? ? ? ? left: -1px;? ? ? ? position: relative;? ? ? ? background-color: #d1d3d1;? ? ? ? content: '';? ? ? ? display: inline-block;? ? ? ? visibility: visible;? ? ? ? border: 2px solid white;? ? }? ? input[type='radio']:checked:after {? ? ? ? width: 15px;? ? ? ? height: 15px;? ? ? ? border-radius: 15px;? ? ? ? top: -2px;? ? ? ? left: -1px;? ? ? ? position: relative;? ? ? ? background-color: #ffa500;? ? ? ? content: '';? ? ? ? display: inline-block;? ? ? ? visibility: visible;? ? ? ? border: 2px solid white;? ? }
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的html中单选框颜色怎么改,如何更改单选按钮的颜色?的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【OS学习笔记】二十一 保护模式六:保户
- 下一篇: 计算机基础及msoffice应用好考吗,