gpt4 book ai didi

html - 文字周围的圆形边框

转载 作者:行者123 更新时间:2023-12-05 08:33:49 25 4
gpt4 key购买 nike

如何使用css应用图片中显示的效果

<div class="textstyle"><b>Sales Cash Invoice</b></div>

text

最佳答案

HTML:

<div class="textstyle">Sales Cash Invoice</div>

CSS:

.textstyle {
background-color: gray; /* Changing background color */
font-weight: bold; /* Making font bold */
border-radius: 20px; /* Making border radius */
width: auto; /* Making auto-sizable width */
height: auto; /* Making auto-sizable height */
padding: 5px 30px 5px 30px; /* Making space around letters */
font-size: 18px; /* Changing font size */
}

如果要添加字体,只需在css中添加一个新行font-family: font_name; .我不能那样做,因为我不知道图像上的字体是什么。

要获得更精确的颜色,请使用 Color Picker .

关于html - 文字周围的圆形边框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36560830/

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