无意中发现关于img的边框问题
整理之前的代码,发现了IE下带链接img标签的竟然有边框!!!脑残的IE,无奈中使用CSS去掉。
方法如下:CSS: a img{border: none;} a img:hover{border: none;}
许多事情不能浅尝辄止,于是去w3c看了一下标准,突然发现border还有这么多好玩的东西。
No border.
A dotted border.
A dashed border.
A solid border.
A double border.
A groove border.
A ridge border.
An inset border.
An outset border.
A hidden border.
代码如下:
<style type="text/css"> p.none {border-style:none;} p.dotted {border-style:dotted;} p.dashed {border-style:dashed;} p.solid {border-style:solid;} p.double {border-style:double;} p.groove {border-style:groove;} p.ridge {border-style:ridge;} p.inset {border-style:inset;} p.outset {border-style:outset;} p.hidden {border-style:hidden;} </style> <p class="none">No border.</p> <p class="dotted">A dotted border.</p> <p class="dashed">A dashed border.</p> <p class="solid">A solid border.</p> <p class="double">A double border.</p> <p class="groove">A groove border.</p> <p class="ridge">A ridge border.</p> <p class="inset">An inset border.</p> <p class="outset">An outset border.</p> <p class="hidden">A hidden border.</p>