中间点的 HTML 实体

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7250381/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 10:22:08  来源:igfitidea点击:

HTML entity for the middle dot

htmlhtml-entities

提问by frenchie

I'm looking for the html code for the dot. Not the dot that's at the end of sentences but the dot that's used to separate items horizontally.

我正在寻找点的 html 代码。不是句子末尾的点,而是用于水平分隔项目的点。

Item 1 . Item 2 . Item 3

The traditional dot is centered on the bottom of the line while the dot I'm looking for is centered on the middle.

传统的点位于线的底部中心,而我正在寻找的点位于中间。

回答by RocketNuts

There's actually six variants of this:

这实际上有六种变体:

    char   description          unicode   html       html entity    utf-8

    ·      Middle Dot           U+00B7    ·     ·       C2 B7
    •      Bullet               U+2022    •    •         E2 80 A2
    ‧      Hyphenation Point    U+2027    ₁                   E2 80 A7
    ∙      Bullet Operator      U+2219    ∙                   E2 88 99
    ●      Black Circle         U+25CF    ●                   E2 97 8F
    ⬤     Black Large Circle   U+2B24    ⬤                  E2 AC A4

Depending on your viewing application or font, the Bullet Operator may seem very similar to either the Middle Dot or the Bullet.

根据您的查看应用程序或字体,Bullet Operator 可能看起来与 Middle Dot 或 Bullet 非常相似。

回答by NotMe

It's called a middle dot: ·

它被称为中间点:·

HTML entities:

HTML 实体:

  • ·
  • ·
  • ·
  • ·
  • ·
  • ·

In CSS:

在 CSS 中:

  • \00B7
  • \00B7

回答by Charlie Guo

Do you mean bulletpoints? • • •

你是说要点吗?• • •

•

回答by Robert C. Barth

That's a bullet: •

这是一个子弹: •

•

回答by splattne

The semantically correct character is the Interpunct, also known as middle dot, as HTML entity

语义正确的字符是Interpunct,也称为中间点,作为 HTML 实体

·

Example

例子

Home · Photos · About

首页 · 图片 · 关于



You could also use the bullet point character, as HTML entity

您还可以使用项目符号字符,作为 HTML 实体

•

Example

例子

Home • Photos • About

主页 • 照片 • 关于

回答by user5227346

Try the HTML code: •

试试 HTML 代码: •

Which will appear as: •

将显示为: •

回答by Satya

This can be done easily using ·. You can color or size the dot according to the tags you wrap it with. For example, try and run this

使用·. 您可以根据包裹它的标签对圆点进行着色或调整大小。例如,尝试运行这个

<h2> I &middot; love &middot; Coding </h2>