Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 5 张图片,我想像这样对齐这 5 张图片
你当然可以建立星星和圆圈
http://css-tricks.com/examples/ShapesOfCSS/
结合这些技术,应该很容易将一颗星放在一个圆圈内。
棘手的一点是将其与图像结合起来。您需要将圆圈用作容器overflow: hidden,然后将图像排列在里面,并用星星覆盖中心。img4 在那里有点问题,因为它与 img3 和 img5 发生冲突。我现在想不出解决办法。
overflow: hidden
使用 CSS3,您可以旋转。
http://www.w3schools.com/cssref/css3_pr_rotation.asp
您应该使用css 转换来完成此操作。这是取自 css-tricks网站的示例。