在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問(wèn)答/HTML/ 遮罩漸變按鈕

遮罩漸變按鈕

圖片描述
這種按鈕如何使用CSS來(lái)實(shí)現(xiàn)?

回答
編輯回答
放開(kāi)她

代碼/效果截圖如下,兼容性未做。建議直接圖片代替這種按鈕。

<div class="button">確認(rèn)</div>

.button {
  position: relative;
  width: 120px;
  height: 30px;
  color: #1e9cd8;
  border-radius: 16px;
  font-size: 18px;
  text-align: center;
  border: 4px solid transparent;
  background: #ffff;
  background-clip: padding-box;
}

.button::after {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  content: '';
  background: linear-gradient(90deg, #0379c2, #22dff3);
  z-index: -1;
  border-radius: 16px;
}

圖片描述

2017年2月22日 09:50
編輯回答
撿肥皂

建議圖片,最簡(jiǎn)單,能兼容

2018年7月25日 18:43