开发者

selective border on mouse move over in msie

my following css code does not work in msie.

#block a {
   border-right: 2px none #eee;
   border-bottom: 2px none #eee;
}

#block a:hover {
   border-right: 2px solid #eee;
   border-bottom: 2px solid #eee;
}开发者_运维技巧

In msie, only the right border will be displayed correctly. The bottom border is totally invisible. Other browsers work fine.

can anybody help me, to make it display correctly in msie as well?

demo website is http://mmjd.com (mouse move over the text on the very right side)


The anchor in question is being displayed inline. IE does not recognise the full width and height.

Setting display:block; resolves this.

#block a {
   border-right: 2px none #eee;
   border-bottom: 2px none #eee;
   display:block;
}

#block a:hover {
   border-right: 2px solid #eee;
   border-bottom: 2px solid #eee;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜