可以使用以下代码实现:

<div style="border: 2px solid #00bfff; border-radius: 3px; background-color: #00bfff; width: 100px; height: 100px;"></div>

解释:

  • border 属性可以设置边框的样式,包括宽度、颜色和样式。这里设置为 2 像素的实线边框,颜色为浅蓝色(#00bfff)。
  • border-radius 属性用于设置圆角的半径大小。这里设置为 3 像素。
  • background-color 属性用于设置背景颜色,这里设置为和边框相同的浅蓝色。
  • widthheight 属性用于设置 div 的宽度和高度,这里都设置为 100 像素。
html 做一个弧度3边框2像素浅蓝蓝背景的圆角div

原文地址: http://www.cveoy.top/t/topic/cr3k 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录