Clip-path on Chrome leaves a strange line on the edge

前端 未结 2 799
闹比i
闹比i 2021-01-14 21:06

I use clip-path to create the particular shape of the blue search button.

From Chrome you see a strange line at the cutout edge, while from Firefox

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-14 22:03

    I had a similar (if not the same) issue, I fixed this by adding the following style to the element with the clip-path:

     transform: translateZ(0)
    

提交回复
热议问题