CSS修改input标签的颜色checkbox和radio

 

 

 

 

html

<input class="red-input" type="checkbox" />

<!-- Radio button example -->
<input class="red-input" type="radio" />

 

 

css

.red-input {
    accent-color: #9d3039;
    height: 20px; /* not needed */
    width: 20px; /* not needed */
}

 

posted @ 2022-10-25 10:15  漫漫长路</>  阅读(82)  评论(0编辑  收藏  举报