使用定位来做。首先给这个圆的父级:position: relative
然后给圆设置:position: absolutetop:50%;left:0;transform: translateY(-50%)
这样就可以了,
font-family: " 幼圆"字体为幼圆。text-align: center 字体水平居中。
margin: 0 5px 外边距上下为0像素; 外边距左右各为5像素(总和为10像素)。
text-decoration: inherit 文字为下划线。
使用定位来做。首先给这个圆的父级:position: relative
然后给圆设置:position: absolutetop:50%;left:0;transform: translateY(-50%)
这样就可以了,
font-family: " 幼圆"字体为幼圆。text-align: center 字体水平居中。
margin: 0 5px 外边距上下为0像素; 外边距左右各为5像素(总和为10像素)。
text-decoration: inherit 文字为下划线。