Chrome and IE9 Border Suppression Techniques
Removing the unsightly border that persists around images in Chrome and IE9 can be a frustrating task. Despite setting border properties to "none," these browsers stubbornly maintain a thin line.
Potential Causes and Solutions:
Example Implementation:
CSS for Chrome Bug:
<code class="css">#dlbutn { display:block; width:0px; height:0px; outline:none; padding:43px 51px 43px 51px; margin:0 auto 5px auto; background-image:url(/images/download-button-102x86.png); background-repeat:no-repeat; }</code>
CSS for IE9 Selection Border:
<code class="css">img { -ms-user-select:none; user-select:none; }</code>
Additional Tips:
The above is the detailed content of Why Do Images Still Have Borders in Chrome and IE9, Even with \'border: none;\'?. For more information, please follow other related articles on the PHP Chinese website!