Home >Web Front-end >HTML Tutorial >Input, button production button IE6, IE7 solution to the 1px black border when clicked_html/css_WEB-ITnose

Input, button production button IE6, IE7 solution to the 1px black border when clicked_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:331018browse

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn