【发布时间】:2016-03-14 04:05:43
【问题描述】:
我有一个 div,它应该包含 5 个图像(圆形)并且这些形状应该旋转(但这不是问题,我可以用 jQuery 做到这一点)。问题是如何通过 css 定位图像,使它们与其他图像的距离相等,并且每个图像与 div 中心的距离也相同。我不知道这是否有意义,但我会尝试用星号来说明我的意思:
*
* *
* *
主块{
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
margin: auto;
height: 500px;
width: 500px;
border-radius: 250px;
background-color: rgba(255,255,255,0.5);
}
【问题讨论】:
-
这个答案中的第二个 sn-p 可以帮助你 - stackoverflow.com/questions/32375780/…
标签: css