CSS- webkit-text-stroke but stroke covers font-color

后端 未结 2 1914
终归单人心
终归单人心 2021-01-24 13:53

Please take a look at here using Chrome : http://jsfiddle.net/u8BdB/

Why the webkit-text-stroke is covering also the font color?

I would like to put

2条回答
  •  轮回少年
    2021-01-24 14:11

    You can do a CSS-based outside text stroke by using ::pseudo-elements. You can actually even do 2 layers of outside stroke.

    You can see the technique on http://www.petercarrero.com/examples/stroke/

    This method works only for web-kit browsers. The article also mentions a few of the caveats you need to be aware of to get good results.

    I hope that helps you.

提交回复
热议问题