0
我用CSS创建了两个相同大小的圆。通过编码,桌面屏幕上的输出很好。但是当我在手机上查看输出时,该圆圈重叠。我听说大众汽车部门对于响应式页面设计非常有用。这就是我使用大众汽车的原因。任何其他技术也欢迎。如何使用vw单位在css中创建响应式圈子?
HTML:
<div class="circle1"> Hello I am a Circle1 </div>
<div class="circle2"> Hello I am a Circle2 </div>
CSS:
.circle1
{
width:100px;
height: 100px;
border-radius: 50%;
font-size: 10px;
color:#F7FAF7;
line-height: 100px;
text-align: center;
background:#000;
position: fixed;
top: 0vh;
left: 0vw;
}
.circle2
{
width:100px;
height: 100px;
border-radius: 50%;
font-size: 10px;
color:#F7FAF7;
line-height: 100px;
text-align: center;
background:#000;
position: fixed;
top: 0vh;
left: 8vw;
}
你可以让你尝试在台式机和移动完成什么草图? – murb
我需要几个相隔一定距离的圆圈。现在我只用了两圈。 – nawas
是固定义务吗? –