Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
387 views
in Technique[技术] by (71.8m points)

这种样式该怎么书写

图片描述

这种重复小点 大点 的样式该怎么写呢,圆圈的个数是由右边组件的
高度和个数来决定的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

最好有案例地址。
图片的角度考虑:可能使用的是border-image,或者使用的背景图(可能有个父容器放背景图,里面有个子容器放内容),随着子容器被撑高,父容器背景图片显示面积随之增大。
如果是代码实现:先制作几个圆,根据js动态加圆的div


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...