HTML: Sub-pixel border

后端 未结 12 998
天涯浪人
天涯浪人 2020-12-11 02:42

Is it possible to have a border that is thinner than 1px and works in IE6+ and is not an image and renders properly visually?

Thank you.

12条回答
  •  隐瞒了意图╮
    2020-12-11 03:26

    I think you could define the width of a border using units like em which would come out to less than 1px, and it would be valid. However, like Will Martin said, for display purposes it would just round it up or down to a whole pixel.

提交回复
热议问题