gpt4 book ai didi

html - 如何在字母周围画一个圆圈?

转载 作者:搜寻专家 更新时间:2023-10-31 08:03:50 24 4
gpt4 key购买 nike

我需要在字母“A”后面做一个小圆圈背景。什么 CSS 会产生这种效果?

看例子:

Example

最佳答案

用 CSS?是这样的吗? http://jsfiddle.net/eLhqswyd/

.i-circle {
display: inline-block;
background-color: #ff0000;
color: #fff;
border-radius: 50%;
font-size: 22px;
line-height: 30px; /* set to same size as width, height */
width: 30px;
height: 30px;
text-align: center;
}
<span class="i-circle">i</span>
<span class="i-circle">w</span>

关于html - 如何在字母周围画一个圆圈?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29980387/

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