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
是固定義務嗎? –