本文实例为大家分享了js实现圆形菜单选择器的具体代码,供大家参考,具体内容如下
代码:
.mask{ position: absolute; width: 502px; height: 252px; left:300px; top:350px; background: white; z-index: 999; } .con { width: 500px; height: 500px; overflow: hidden; position: absolute; border-radius: 100%; border: 1px solid black; user-select: none; cursor: pointer; left: 300px; top: 100px; } .con>div { position: absolute; width: 250px; height: 250px; top: 0; left: 125px; text-align: center; font-size: 16px; transform-origin: bottom center; } .con1 { width: 400px; height: 400px; overflow: hidden; position: absolute; border-radius: 100%; border: 1px solid black; user-select: none; cursor: pointer; left: 350px; top: 150px; } .con1>div { position: absolute; width: 200px; height: 200px; top: 0; left: 100px; text-align: center; font-size: 16px; transform-origin: bottom center; }


