HTML: Sub-pixel border

后端 未结 12 1009
天涯浪人
天涯浪人 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:35

    you can transform the line like that:

    .thin{ -ms-transform:scale(1, 0.5); -webkit-transform:scale(1, 0.5); transform:scale(1, 0.5);}
    

    or, if the line is vertical

    .thin{ -ms-transform:scale(0.5, 1); -webkit-transform:scale(0.5, 1); transform:scale(0.5, 1);}
    

提交回复
热议问题