-2
Q
讓票按鈕,CSS
A
回答
3
你可以使用僞元素,並從他們的影子畫背景,example:
a {
margin:3em;
font-family:arial;
text-decoration:none;
position:relative;
display:inline-block;
padding:1.5em 5em;
text-transform:uppercase;
overflow:hidden;
color:white;
border:3px solid white;
border-left:none;
border-right:none;
background:linear-gradient(to left, white 3px, transparent 3px, transparent calc(100% - 3px), white calc(100% - 3px)) top left no-repeat,linear-gradient(to left, white 3px, transparent 3px, transparent calc(100% - 3px), white calc(100% - 3px)) bottom left no-repeat;
background-size:100% 1.45em;
}
a:before,a:after {
z-index:-1;
content:'';
position:absolute;
height:1.2em;
width:1em;
top:1.4em;
border-radius:50%;
border:3px solid white;
box-shadow:0 0 0 10em #102229;
}
a:before {
left:-0.7em;
}a:after {
right:-0.7em;
}
b:after {
content:'>';
color:#DA153E;
font-weight:bold;
}
body {
background:url(http://lorempixel.com/600/300);
}
<a href="#"> <b>get a free quote </b></a>
+0
男人,非常感謝!你只需要節省很多時間,因爲我在半天的時間裏玩了線性漸變....再次感謝! – dkruchok
相關問題
- 1. PayPal支票按鈕:隱藏票據
- 2. iPhone:按鈕「投票在AppStore」
- 3. Reddit式的投票按鈕
- 4. 按下按鈕css
- 5. CSS精靈 - 如何讓懸停按鈕在按下狀態
- 6. HTML/CSS按鈕
- 7. HTML/CSS按鈕
- 8. 純CSS按鈕
- 9. CSS:在按鈕
- 10. 的CSS按鈕定位沒有按鈕
- 11. CSS時按鈕變爲ASP按鈕
- 12. Digg風格Ajax投票按鈕
- 13. 在Swift中解析投票按鈕
- 14. 投票按鈕,是和否Rails 4
- 15. ASP.Net Ajax Stackoverflow風格投票按鈕
- 16. 提示StackExchange與Pentadactyl的投票按鈕
- 17. PayPal通過Opencart訂閱按鈕發票
- 18. 投票系統按鈕修復
- 19. 數據庫設計的投票按鈕
- 20. 檢票口通過點擊按鈕
- 21. 保護在stackoverflow中的投票按鈕
- 22. Bootstrap投票按鈕不起作用
- 23. 在Django中的簡單投票按鈕
- 24. 在檢票口啓用/禁用按鈕
- 25. 股票圖標不上的按鈕
- 26. 客戶發票確認按鈕
- 27. 的Android - 添加按鈕,股票相機
- 28. 檢票口:後退按鈕前一頁
- 29. CSS - 動畫按鈕
- 30. 單選按鈕CSS
發佈您的代碼。 – coderodour
你累了什麼? –
發佈您嘗試的任何內容。 –