-1
A
回答
1
您可以使用僞元素來創建舍入的片段和「剪裁」的邊框。
.flex {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.flex > * {
height: 50px;
position: relative;
display: flex;
align-items: center;
}
.flex > *:before {
content: "";
position: absolute;
display: inline-block;
top: 10px;
bottom: 0px;
left: -90px;
width: 90px;
border-right: 2px solid red;
border-bottom: 2px solid red;
border-bottom-right-radius: 10px;
}
.flex > *:after {
content: "";
position: absolute;
display: inline-block;
top: -2px;
height: 10px;
left: 0px;
width: 10px;
border-left: 2px solid red;
border-top: 2px solid red;
border-top-left-radius: 10px;
}
.flex > .one {
width: 100px;
}
.flex > .two {
width: 200px;
}
.flex > .three {
width: 300px;
}
.flex > .four {
width: 400px;
}
.degrees {
/* circle styles */
width: 30px;
height: 30px;
border-radius: 50%;
border: 1px solid red;
/* styles for centering */
display: flex;
align-items: center;
justify-content: center;
margin-left: 15px;
}
<div class="flex">
<div class="one">
<div class="degrees">1°</div>
</div>
<div class="two">
<div class="degrees">2°</div>
</div>
<div class="three">
<div class="degrees">3°</div>
</div>
<div class="four">
<div class="degrees">4°</div>
</div>
</div>
0
這些樣式。因此,在標籤style =「 - moz-border-radius:5px;」
input[type=email] {
-moz-border-radius: 5px;
border-radius: 5px;
border: solid 1.4px black;
padding: 5px;
padding: 7px 7px 7px 7px;
max-width: 300px;
width: 80%;
}
+1
'border-radius'的'-moz-'供應商前綴[不再需要](http://caniuse.com/#feat=border-radius) – Toastrackenigma
相關問題
- 1. UIToolbar上的圓角半徑?
- 2. 圓角半徑問題
- 3. CSS3倒圓角落
- 4. 問題的邊界半徑圓角
- 5. 帶邊框半徑的多線圓角
- 6. Highcharts:繪圖邊框的圓角半徑
- 7. QuartzCore不拉絲圓角半徑
- 8. 按鈕圓角半徑不iOS的
- 9. 爲繪製UIImageView設置圓角半徑
- 10. 核心繪圖CPTGraphHostingView圓角半徑
- 11. iphone:按鈕圓角半徑未設置
- 12. 導航欄的圓角半徑
- 13. 圓角邊框使用半徑
- 14. 圓角半徑的範圍是多少?
- 15. 圓角半徑可繪製形狀
- 16. CSS圓角
- 17. CSS圓角
- 18. 用CSS畫出圓圈的半徑線
- 19. NSImageView圓角+筆畫
- 20. 如何向圓角圖像添加圓角邊框(使用邊框半徑圓角)
- 21. 畫一個半徑爲圓形的圓點
- 22. 畫一個半圓UISlider
- 23. 統一畫一個角度的橢圓
- 24. CSS圓角的div
- 25. CSS圓角問題
- 26. 圓角CSS控制
- 27. 圓角(CSS和JavaScript)
- 28. CSS圓角股利
- 29. 圓角通過CSS
- 30. 圓角左側CSS
如果你嘗試過什麼添加代碼示例,你可能會得到一些正確的答案 – LGSon
添加'padding'和負'margin'抵消它,而隱藏在了'overflow'父元素。 –
沒有代碼 - 沒有巧克力。我們可以幫忙,而不是爲你做。你到目前爲止做了什麼,你失敗了?屏幕截圖是無用的 –