3
我需要在我的網站的標題中重新創建一個像這樣的效果。 我想通過CSS來做到這一點,任何人都可以幫助我,因爲我堅持與三角...倒三角倒角與圓角
這裏是我的測試:
#main-nav {height:200px;width:1200px;background-color:#000}
#triangle {
width: 0;
height: 0px;
border-style: solid;
border-width: 300px 300px 0px 0px;
border-color: #007bff transparent transparent transparent;
border-radius: 70px 2px 2px 2px;
margin: auto;
top: -400px;
position: relative;
/* background-color: #ccc; */
-moz-border-radius: 20px;
transform: rotate(-135deg);
/* border-top: 80px solid blue; */
/* border-bottom: 80px solid blue; */
/* border-right:80px solid blue; */
}
<div id="main-nav">
</div>
<div id="triangle">
</div>
這將幫助你 - http://stackoverflow.com/questions/27462276 /邊界上帶有一個透明或 - 相同-COL or-centered-arrow-on-a-div or http://stackoverflow.com/questions/23758922/transparent-arrow-triangle/23759602#23759602 – Harry