Is there a Webkit-specific CSS style that will allow me to control the color/size/style of the box around the color in an input[type=color]
?
I'm setting the color and background color of the input already so it looks good with a cross-compatibility polyfill I'm using for older Chrome and Firefox.
Now that Chrome actually has a color picker, there's a box around the color which leaves a 1px
grey box floating in the middle of the input when both color and background color of the input are set to the same color.
Is there some CSS to get rid of it, either by setting that box's width to 0, changing the style to none
, or, at worst, setting the color to the same as the color and background color?
In this image, I'm talking about the grey box around the white area and outside the green:
I've found one workaround, which is to set a high enough padding that the box (the grey border and green contents) is squished to size 0. But that's really hacky, and doesn't look very good over in Firefox.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…