Change Background-Color of a Radio Button

前端 未结 5 546
一生所求
一生所求 2021-01-15 12:35

Is it possible to change the background color of a radio button input in Firefox/Chrome like in IE? (Without using images)

Run this in both IE(<9) and Firefox/Chr

5条回答
  •  萌比男神i
    2021-01-15 13:08

    Alternatively it is possible to change the border using CSS.

    This is the input radio:

    
    

    And this is the CSS:

    .highlighted {
        outline:1px solid #F00; /* Firefox, Opera, Chrome, IE8+ */
        *filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=-1, OffY=0,color=#FF0000) progid:DXImageTransform.Microsoft.dropshadow(OffX=1, OffY=0,color=#FF0000) progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=-1,color=#FF0000) progid:DXImageTransform.Microsoft.dropshadow(OffX=0, OffY=1,color=#FF0000); /* IE6, IE7 */
    }
    

提交回复
热议问题