修改checkBox樣式

1、效果圖

2、代碼

//HTML代碼

<div class="speech-bubble speech-bubble-bottom"><span>選擇後原設置短信接手號碼將替代爲當前號碼。</span></div>
/CSS代碼

.speech-bubble {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 59%;
  left: 15%;
  background-color: #fff;
  width: 292px;
  height: 54px;
  color: rgba(255,255,255,0.01);
  text-align: center;
  border-radius: 10px;
  font-family: sans-serif;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);
}
.speech-bubble span {
  text-align: center;
  font-family: PingFangSC;
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
  font-stretch: normal;
  line-height: 1.33;
  letter-spacing: 1px;
  color: #191919;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: 15px solid;
}
.speech-bubble-bottom:after {
  border-top-color: #fff;
  top: 100%;
  left: 50%;
  margin-left: -15px;
}
相關文章
相關標籤/搜索