Add stroke around text - on the outside - with css?

后端 未结 9 1462
走了就别回头了
走了就别回头了 2021-01-03 21:48

I have the following HTML and CSS:

9条回答
  •  無奈伤痛
    2021-01-03 22:25

    One option is to use text-shadow to simulate a stroke. Example:

    text-shadow:
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000;
    

提交回复
热议问题