HTML for the Pause symbol in audio and video control

后端 未结 10 2111
遥遥无期
遥遥无期 2020-12-22 17:21

I\'m trying to find the Unicode symbol to make a button display the Unicode pause symbol. I was able to find that the Unicode play symbol is but I\'m

相关标签:
10条回答
  • 2020-12-22 17:48

    ▐▐  is HTML and is made with this code: ▐▐.

    Here's an example JSFiddle.

    0 讨论(0)
  • 2020-12-22 17:55

    There is no character encoded for use as a pause symbol, though various characters or combinations of characters may look more or less like a pause symbol, depending on font.

    In a discussion in the public Unicode mailing list in 2005, a suggestion was made to use two copies of the U+275A HEAVY VERTICAL BAR character: ❚❚. But the adequacy of the result depends on font; for example, the glyph might have been designed so that the bars are too much apart. – The list discussion explains why a pause symbol had not been encoded, and this has not changed.

    Thus, the best option is to use an image. If you need to use the symbol in text, it is best to create it in a suitably large size (say 60 by 60 pixels) and scale it down to text size with CSS (e.g., setting height: 0.8em on the img element).

    0 讨论(0)
  • 2020-12-22 17:55

    The ISO 7000 / IEC 60417 Symbol for Pause; Interruption is #5111B. See Media_Controls

    0 讨论(0)
  • 2020-12-22 17:57

    If you want one that's a single character to match the right-facing triangle for "play," try Roman numeral 2. Ⅱ is &#8545; in HTML. If you can put formatting tags around it, it looks really good in bold. is <b>&#8545;</b> in HTML. This has much better support than the previously mentioned double vertical bar.

    0 讨论(0)
提交回复
热议问题