Ali*_*426 18
如果使用 HTML,您可以附加 xFE0E 来获取使用 CSS 的文本版本和颜色:
<span>🔴</span>
<span>🔴︎</span>
<span style="color: lime;">🔴︎</span>Run Code Online (Sandbox Code Playgroud)
ntg*_*ntg 12
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()
Run Code Online (Sandbox Code Playgroud)
对于青色圆圈,尝试从 0x1f7df 开始,范围为 1000...另请注意,unicode 颜色是尽力而为,因此例如在克林贡浏览器上,内容可能不会以颜色显示...
另外,要查找您拥有的字符代码,例如:
chars=''
for i,c in enumerate(chars):
print('[{}: {}] '.format(hex(ord(c)),c), end='')
if i%7==6:
print()
Run Code Online (Sandbox Code Playgroud)
给出:
[0x1f535: ] [0x1f534: ] [0x1f7e0: ] [0x1f7e1: ] [0x1f7e2: ] [0x1f7e3: ] [0x1f7e4: ]
[0x1f7e6: ] [0x1f7e5: ] [0x1f7e7: ] [0x1f7e8: ] [0x1f7e9: ] [0x1f7ea: ] [0x1f7eb: ]
[0x1f6d1: ] [0x1f536: ] [0x1f537: ] [0x1f538: ] [0x1f539: ] [0x1f53a: ] [0x1f53b: ]
Run Code Online (Sandbox Code Playgroud)
在 HTML 和 CSS 中,您可以附加 xFE0E 来获取文本版本和颜色:
在 HTML 中:
<div>❌</div>
<div style= "color: blue;">❌︎</div>
<div style= "color: green;">❌︎</div>Run Code Online (Sandbox Code Playgroud)
在CSS中:
.css-symbol:after {
color: black;
content: "\274C";
}
.css-symbol1:after {
color: black;
content: "\274C\fe0e";
}
.css-symbol2:after {
color: blue;
content: "\274C\fe0e";
}Run Code Online (Sandbox Code Playgroud)
<div class="css-symbol">css: </div>
<div class="css-symbol1">css: </div>
<div class="css-symbol2">css: </div>Run Code Online (Sandbox Code Playgroud)
混合 HTML 和 CSS:
div {
color: black;
}
.css-symbol:after {
color: blue;
content: "\274C\fe0e";
}Run Code Online (Sandbox Code Playgroud)
<div>❌</div>
<div>❌︎</div>
<div class="css-symbol"></div>Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
14079 次 |
| 最近记录: |