我有一个HTML元素,它是一个小的父元素(小圆形或矩形)的子元素。
<div class="parent" style="position: absolute; width: 6px; height: 6px;">
<span class="label_top">0000000000|0000000000</span>
</div>
我需要子元素水平居中在父元素的上方或下方,并有可能围绕父元素旋转。
这个问题在某种意义上是How to center a child element in CSS, even if it is larger than the parent?和Rotate child element around the parent element with transition的结合
转载请注明出处:http://www.jubohx.com/article/20230506/2388570.html