Home >Web Front-end >HTML Tutorial >Input, button production button IE6, IE7 solution to the 1px black border when clicked_html/css_WEB-ITnose
The most common solution to the 1px black border when the button is clicked in IE6
First set the button to none, and then put a layer outside the button to achieve the border effect, part The code is as follows
.btnbox{ border:solid 1px red;}.btn{ border:none;}<span class="btnbox"><input class="btn" type="button" value="按钮"></span>
The second method is through the filter
input { filter:chroma(color=#000000); }
Note: Because there is no filter function in ietest, the effect cannot be tested in this software