-1
我有兩個切換標籤,每個標籤的寬度都爲50%。兩者都是可點擊的標籤。標籤的中間邊框需要傾斜。我嘗試了歪斜屬性。但是標籤內的文字也出現偏差。我如何實現傾斜的中間邊界。無論如何只能用css邊框來實現?我如何創建兩個標籤的傾斜中間邊框
.toggleBtnRight {
border: 1px solid white;
background: none;
font-family: 'Futura LT BOLD' !important;
color: #005695;
font-size: 0.7em;
text-align: center;
margin: auto;
float: right;
font-weight: bolder;
padding-top: 10px;
padding-bottom: 10px;
width: 50%;
}
.toggleBtnLeft {
border: 1px solid white;
background: none;
font-family: 'Futura LT BOLD' !important;
color: #005695;
font-size: 0.7em;
text-align: center;
margin: auto;
float: left;
font-weight: bolder;
padding-top: 10px;
padding-bottom: 10px;
width: 50%;
}
.clickedBtn {
background: #f3f3f5 !important;
border-bottom: 1px solid #c6c6c7 !important;
border-left: 1px solid #c6c6c7 !important;
border-right: 1px solid #c6c6c7 !important;
}
忘記添加樣式爲 .clickedBtn { \t background:#f3f3f5!important; \t border-bottom:1px solid#c6c6c7!important; \t border-left:1px solid#c6c6c7!important; \t border-right:1px solid#c6c6c7!important; \t } – kate
您可以編輯自己的帖子。只需在您的問題中添加上述評論樣式 –
好的。我編輯過。我的問題是否會得到回答? – kate