gpt4 book ai didi

html - 如何在 HTML 中编写 CC(知识共享标志)

转载 作者:技术小花猫 更新时间:2023-10-29 12:46:15 24 4
gpt4 key购买 nike

如何在 HTML 中编写 CC Logo ,是否有类似 ©(给出 ©)之类的东西?

(CC 代表知识共享)。

最佳答案

正如 schnaader 所指出的,有一种 TTF 字体,但是 pace 他的回答,它实际上可以为没有使用 CSS @font-face< 安装它的人正确呈现 标签。

<!DOCTYPE html> 
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Test</title>
<style type="text/css">
@media screen {
@font-face {
font-family: 'CC-ICONS';
font-style: normal;
font-weight: normal;
src: url('http://mirrors.creativecommons.org/presskit/cc-icons.ttf') format('truetype');
}

span.cc {
font-family: 'CC-ICONS';
color: #ABB3AC;
}
}
</style>
</head>
<body>
<p>Key: a: SA, b: BY, c: CC Circle, d: ND, n: NC, m: Sampling, s: Share, r: Remix, C: CC Full Logo</p>
<span class="cc">a b c d n m s r C</span>
<p>This page is licensed under <span class="cc">C</span></p>
</body>
</html>

Try out this example in jsFiddle .

关于html - 如何在 HTML 中编写 CC(知识共享标志),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/282171/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com