UTF-8 块元素符号

  • 定义和使用

    如果字符没有 HTML 实体,则可以使用十进制(dec)或十六进制(hex)引用。
    如果要在 HTML 中显示特殊字符,可以使用下表中的 HTML 实体。
    字符 十进制 十六进制 实体 名称
    9600 2580   UPPER HALF BLOCK
    9601 2581   LOWER ONE EIGHTH BLOCK
    9602 2582   LOWER ONE QUARTER BLOCK
    9603 2583   LOWER THREE EIGHTHS BLOCK
    9604 2584   LOWER HALF BLOCK
    9605 2585   LOWER FIVE EIGHTHS BLOCK
    9606 2586   LOWER THREE QUARTERS BLOCK
    9607 2587   LOWER SEVEN EIGHTHS BLOCK
    9608 2588   FULL BLOCK
    9609 2589   LEFT SEVEN EIGHTHS BLOCK
    9610 258A   LEFT THREE QUARTERS BLOCK
    9611 258B   LEFT FIVE EIGHTHS BLOCK
    9612 258C   LEFT HALF BLOCK
    9613 258D   LEFT THREE EIGHTHS BLOCK
    9614 258E   LEFT ONE QUARTER BLOCK
    9615 258F   LEFT ONE EIGHTH BLOCK
    9616 2590   RIGHT HALF BLOCK
    9617 2591   LIGHT SHADE
    9618 2592   MEDIUM SHADE
    9619 2593   DARK SHADE
    9620 2594   UPPER ONE EIGHTH BLOCK
    9621 2595   RIGHT ONE EIGHTH BLOCK
    9622 2596   QUADRANT LOWER LEFT
    9623 2597   QUADRANT LOWER RIGHT
    9624 2598   QUADRANT UPPER LEFT
    9625 2599   QUADRANT UPPER LEFT AND LOWER LEFT AND LOWER RIGHT
    9626 259A   QUADRANT UPPER LEFT AND LOWER RIGHT
    9627 259B   QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER LEFT
    9628 259C   QUADRANT UPPER LEFT AND UPPER RIGHT AND LOWER RIGHT
    9629 259D   QUADRANT UPPER RIGHT
    9630 259E   QUADRANT UPPER RIGHT AND LOWER LEFT
    9631 259F   QUADRANT UPPER RIGHT AND LOWER LEFT AND LOWER RIGHT
    注意:较旧的浏览器可能不支持上表中的所有HTML5实体。 Chrome具有良好的支持。 但是(当前)只有IE 11+和Firefox 35+支持所有实体。
  • 示例

    <p>I will display &#9602;</p>
    <p>I will display &#x2582;</p>
    
    
    显示结果为:
    I will display ▂
    
    I will display ▂
    
    
    尝试一下