我正在嘗試創建一個圓形儀表,它將根據值進行更新。問題是有一個紅色邊框出了圈......有沒有移除一個好辦法... 這是我fiddle創建一個圓形儀表,背景色正在創建問題
這是HTML代碼:
<div class="outer">
<div class="left-cov"></div>
<div class="right-cov"></div>
<div class="inner">
<p class="fy-rate">1.5</p>
</div>
</div>
以下是CSS代碼爲:
* {
float:left;
margin:0px;
padding:0px;
}
.outer {
border-radius:50%;
background-color:red;
width:220px;
height:220px;
position:relative;
margin:20px;
overflow:hidden
}
.inner {
border-radius: 50%;
background-color:yellow;
width:180px;
height:180px;
position:relative;
top:20px;
left:20px;
}
.left-cov {
height:100%;
width:50%;
position:absolute;
top:0px;
left:0px;
background-color:grey
}
.right-cov {
height:100%;
width:50%;
background-color:grey;
position:absolute;
bottom:0px;
right:0px;
}
.fy-rate {
font-size:52px;
width:100%;
text-align:center;
margin-top:45px;
}
@KyleSevenoaks嘗試小提琴你可以找到你需要的:) – 2013-04-23 13:10:15
嗨,尋找**邊界半徑背景流血**通過網絡爲您的答案:https://www.google.ca/search?num=100&newwindow=1&site=&source= hp&q = border-radius + bleed關於這種情況,有一些Stackoverflow問題:http://stackoverflow.com/search?q=border-radius+bleed – 2013-04-23 13:19:12