Unicode character for “X” cancel / close?

前端 未结 17 2095
我在风中等你
我在风中等你 2021-01-29 17:18

I want to create a close button using CSS only.

I\'m sure I\'m not the first to do this, so does anyone know which font has an \'x\' the same width as height, so that it

17条回答
  •  青春惊慌失措
    2021-01-29 17:58

    × × or × (same thing) U+00D7 multiplication sign

    × same character with a strong font weight


    U+2A2F Gibbs product


    U+2716 heavy multiplication sign


    There's also an emoji ❌ if you support it. If you don't you just saw a square =


    I also made this simple code example on Codepen when I was working with a designer who asked me to show her what it would look like when I asked if I could replace your close button with a coded version rather than an image.

提交回复
热议问题