1.可以用css3的border-radius屬性來實現,支援ie9+
<div class="dm">
</div>
<div class="dm1">
</div>
<div class="dm2">
</div>
<div class="dm3">
</div>
<div class="dm4">
</div>
<div class="dm5">
</div>
<div class="dm6">
</div>
<div class="dm7">
</div>
<style>
.dm {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 100px solid #00897B;
}
.dm1{
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-top: 100px solid #00897B;margin-top: 20px;
}
.dm2{
width: 0;
height: 0;
border-top: 50px solid transparent;
border-right: 100px solid #00897B;
border-bottom: 50px solid transparent;margin-top: 20px;
}
.dm3{
width: 0;
height: 0;
border-top: 50px solid transparent;
border-left: 100px solid #00897B;
border-bottom: 50px solid transparent;margin-top: 20px;
}
.dm4{
width: 0;
height: 0;
border-top: 100px solid #00897B;
border-right: 100px solid transparent;margin-top: 20px;
}
.dm5{
width: 0;
height: 0;
border-top: 100px solid #00897B;
border-left: 100px solid transparent; margin-top: 20px;
}
.dm6{
width: 0;
height: 0;
border-bottom: 100px solid #00897B;
border-right: 100px solid transparent
}
.dm7{
width: 0;
height: 0;
border-bottom: 100px solid #00897B;
border-left: 100px solid transparent;
}
</style>
2.利用CSS怎樣寫出三角形#bottom{ width:0px; height:0px; border-left:30px solid #FFFFFF; border-top:30px #FF6699 solid; border-right:30px solid #FFFFFF; } #top{ width:0px; height:0px; border-left:30px solid #FFFFFF; border-bottom:30px #FF6699 solid; border-right:30px solid #FFFFFF; } #rt{ width:0px; height:0px; border-left:30px solid #FFffff; border-bottom:30px #ff6699 solid; } #lt{ width:0px; height:0px; border-right:30px #FFffff solid; border-bottom:30px solid #FF0000; } 下 上 右下 左下。
3.如何用CSS寫一個三角形1.可以用css3的border-radius屬性來實現,支援ie9+ <style> .dm { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid #00897B;}.dm1{ width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid #00897B;margin-top: 20px;}.dm2{ width: 0; height: 0; border-top: 50px solid transparent; border-right: 100px solid #00897B; border-bottom: 50px solid transparent;margin-top: 20px;}.dm3{ width: 0; height: 0; border-top: 50px solid transparent; border-left: 100px solid #00897B; border-bottom: 50px solid transparent;margin-top: 20px;}.dm4{ width: 0; height: 0; border-top: 100px solid #00897B; border-right: 100px solid transparent;margin-top: 20px;}.dm5{ width: 0; height: 0; border-top: 100px solid #00897B; border-left: 100px solid transparent; margin-top: 20px;}.dm6{ width: 0; height: 0; border-bottom: 100px solid #00897B; border-right: 100px solid transparent}.dm7{ width: 0; height: 0; border-bottom: 100px solid #00897B; border-left: 100px solid transparent;}</style>。
4.怎樣用html或css製作三角形希望可以幫到樓主,下面是實現的代碼:
#triangle-up {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 100px solid red;
}
HTML代碼:
<div id="trlangle-up></div>
希望我的回答對樓主有幫助,不懂可以繼續追問。
5.如何使用HTML&CSS寫一個三角形<div style="width:200px; text-align:center; color:#fff; background-color:red;">;等邊三角形</div>
<div style="width:200px; text-align:center; color:#fff; background-color:red;">;等腰直角三角形</div>
6.利用CSS怎樣寫出三角形利用CSS+DIV怎樣寫<meta charset="utf-8">