我想要一个像这样的绿色、青色、紫色和黄色的大圆圈,但是没有相应的代码。有没有办法改变代码的颜色呢?
我想要一个像这样的绿色、青色、紫色和黄色的大圆圈,但是没有相应的代码。有没有办法改变代码的颜色呢?
如果使用HTML,则可以附加xFE0E以获取文本版本,并使用CSS对其进行着色:
<span>🔴</span>
<span>🔴︎</span>
<span style="color: lime;">🔴︎</span>
Unicode非常庞大,甚至包含克林贡语,现在它有更多的颜色和表情符号... 请使用数字以搜索和找到你所需要的内容...
for i in range (10):
ii = int('0x1f7e0',base=16)+i
print('{:>15}'.format('[{}: {}] '.format(hex(ii),chr(ii))),end='')
if i%7==6:
print()
对于青色圆圈, 请从0x1f7df开始,范围为1000... 另外请注意,Unicode颜色尽力而为,因此在克林贡人的浏览器上可能无法显示颜色...
此外,要查找字符代码,您可以使用以下方法:
chars=''
for i,c in enumerate(chars):
print('[{}: {}] '.format(hex(ord(c)),c), end='')
if i%7==6:
print()
给出:
[0x1f535: ] [0x1f534: ] [0x1f7e0: ] [0x1f7e1: ] [0x1f7e2: ] [0x1f7e3: ] [0x1f7e4: ]
[0x1f7e6: ] [0x1f7e5: ] [0x1f7e7: ] [0x1f7e8: ] [0x1f7e9: ] [0x1f7ea: ] [0x1f7eb: ]
[0x1f6d1: ] [0x1f536: ] [0x1f537: ] [0x1f538: ] [0x1f539: ] [0x1f53a: ] [0x1f53b: ]
<div>❌</div>
<div style= "color: blue;">❌︎</div>
<div style= "color: green;">❌︎</div>
.css-symbol:after {
color: black;
content: "\274C";
}
.css-symbol1:after {
color: black;
content: "\274C\fe0e";
}
.css-symbol2:after {
color: blue;
content: "\274C\fe0e";
}
<div class="css-symbol">css: </div>
<div class="css-symbol1">css: </div>
<div class="css-symbol2">css: </div>
Mixing Both HTML and CSS:
div {
color: black;
}
.css-symbol:after {
color: blue;
content: "\274C\fe0e";
}
<div>❌</div>
<div>❌︎</div>
<div class="css-symbol"></div>
⬤
●
<p style="color:pink;">Circle ⬤● Example</p>
<p style="color:#0000ff;">Circle ⬤● Example</p>
<p style="color:rgb(255, 255, 0);">Circle ⬤● Example</p>