內星的地方,我發現一個代碼繪製6點明星:CSS繪製的6點按鈕鏈接
#star-six {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 100px solid red;
position: relative;
}
#star-six:after {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-top: 100px solid red;
position: absolute;
content: "";
top: 30px;
left: -50px;
}
現在我需要把按鈕元素內這張圖片。 應該看起來像一個真正的按鈕,左側有6個點的起點。
| * Button |像這樣的:)
發佈與演示代碼。所以我們有一個想法你在做什麼。 –
即時通訊不能確定你發佈的CSS是什麼,但它確實沒有繪製任何東西,因爲你根本不用繪製CSS。請同時發佈您的HTML,以便我們可以看到最新消息 – Banana
爲什麼重新發明輪子:http://fortawesome.github.io/Font-Awesome/icon/star/ –