.ta-weaponModal-img {
position: relative;
width: 128px;
height: 128px;
border: 1px solid #ffff00;
margin-left: calc(50% - 64px);
}
.ta-weaponModal-cardbgGold {
background-image: linear-gradient(#000000, #8b8522);
}
<div class="ta-weaponModal-img ta-weaponModal-cardbgGold">
</div>
<div class="ta-weaponModal-img ta-weaponModal-cardbgGold">
<div class="ta-weaponpImg-border ta-weaponpImg-left ta-weaponModal-leftGold"></div>
<div class="ta-weaponpImg-border ta-weaponpImg-right ta-weaponModal-rightGold"></div>
</div>
.ta-weaponpImg-border {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 67%;
border: 4px solid transparent;
}
.ta-weaponpImg-left {
left: 0;
}
.ta-weaponpImg-right {
right: 0;
}
.ta-weaponModal-leftGold {
border-left-color: #eeea17;
}
.ta-weaponModal-rightGold {
border-right-color: #eeea17;
}
.ta-weaponpImg-left:before,
.ta-weaponpImg-left:after {
content: '';
display: inline-block;
width: 20px;
height: 0.3px;
position: absolute;
left: 0;
transform-origin: top left;
transform: rotate(45deg);
}
.ta-weaponpImg-left:before {
top: -20px;
}
.ta-weaponpImg-left:after {
bottom: -20px;
transform: rotate(-45deg);
}
.ta-weaponpImg-right:before,
.ta-weaponpImg-right:after {
content: '';
display: inline-block;
width: 20px;
height: 0.3px;
position: absolute;
right: 0;
transform-origin: top right;
transform: rotate(-45deg);
}
.ta-weaponpImg-right:before {
top: -20px;
}
.ta-weaponpImg-right:after {
bottom: -20px;
transform: rotate(45deg);
}
.ta-weaponModal-leftGold:before, .ta-weaponModal-leftGold:after, .ta-weaponModal-rightGold:before, .ta-weaponModal-rightGold:after {
background: #ffed10;
}
.ta-weaponModal-img img {
width: 100%;
}
<img src="/武器.png" alt="">
.ta-weaponCard-gold { border: 1px solid #ffff00; }
.ta-weaponText-gold { color: #d4d400; }
.ta-weaponCard-purple { border: 1px solid #d600d6; }
.ta-weaponText-purple { color: #980398; }
.ta-weaponCard-blue { border: 1px solid #00b1ff; }
.ta-weaponText-blue { color: #2fb6de; }
.ta-weaponCard-green { border: 1px solid #11e911; }
.ta-weaponText-green { color: #14b714; }
.ta-weaponCard-white { border: 1px solid #999999; }
.ta-weaponText-white { color: #7d7d7d; }
.ta-weaponModal-cardbgGold { background-image: linear-gradient(#000000, #8b8522); }
.ta-weaponModal-cardbgPurple { background-image: linear-gradient(#000000, #613793); }
.ta-weaponModal-cardbgBlue { background-image: linear-gradient(#000000, #22678b); }
.ta-weaponModal-cardbgGreen { background-image: linear-gradient(#000000, #169011); }
.ta-weaponModal-cardbgWhite { background-image: linear-gradient(#000000, #828482); }
.ta-weaponModal-leftGold { border-left-color: #eeea17; }
.ta-weaponModal-leftPurple { border-left-color: #b858d9; }
.ta-weaponModal-leftBlue { border-left-color: #23b6ff; }
.ta-weaponModal-leftGreen { border-left-color: #4cef30; }
.ta-weaponModal-leftWhite { border-left-color: #b9b9b9; }
.ta-weaponModal-rightGold { border-right-color: #eeea17; }
.ta-weaponModal-rightPurple { border-right-color: #b858d9; }
.ta-weaponModal-rightBlue { border-right-color: #23b6ff; }
.ta-weaponModal-rightGreen { border-right-color: #4cef30; }
.ta-weaponModal-rightWhite { border-right-color: #b9b9b9; }
.ta-weaponModal-leftGold:before, .ta-weaponModal-leftGold:after,
.ta-weaponModal-rightGold:before, .ta-weaponModal-rightGold:after {
background: #ffed10;
}
.ta-weaponModal-leftPurple:before, .ta-weaponModal-leftPurple:after,
.ta-weaponModal-rightPurple:before, .ta-weaponModal-rightPurple:after {
background: #9b1fab;
}
.ta-weaponModal-leftBlue:before, .ta-weaponModal-leftBlue:after,
.ta-weaponModal-rightBlue:before, .ta-weaponModal-rightBlue:after {
background: #207eaa;
}
.ta-weaponModal-leftGreen:before, .ta-weaponModal-leftGreen:after,
.ta-weaponModal-rightGreen:before, .ta-weaponModal-rightGreen:after {
background: #18a52f;
}
.ta-weaponModal-leftWhite:before, .ta-weaponModal-leftWhite:after,
.ta-weaponModal-rightWhite:before, .ta-weaponModal-rightWhite:after {
background: #9a9c9a;
}
<div class="ta-weaponModal-img ta-weaponModal-cardbgGold">
<div class="ta-weaponpImg-border ta-weaponpImg-left ta-weaponModal-leftGold"></div>
<div class="ta-weaponpImg-border ta-weaponpImg-right ta-weaponModal-rightGold"></div>
<img src="/武器.png" alt="">
</div>
.ta-weaponModal-img {
position: relative;
width: 128px;
height: 128px;
border: 1px solid #ffff00;
margin-left: calc(50% - 64px);
}
.ta-weaponModal-cardbgGold {
background-image: linear-gradient(#000000, #8b8522);
}
.ta-weaponpImg-border {
position: absolute;
top: 50%;
transform: translateY(-50%);
height: 67%;
border: 4px solid transparent;
}
.ta-weaponpImg-left {
left: 0;
}
.ta-weaponpImg-right {
right: 0;
}
.ta-weaponModal-leftGold {
border-left-color: #eeea17;
}
.ta-weaponModal-rightGold {
border-right-color: #eeea17;
}
.ta-weaponpImg-left:before,
.ta-weaponpImg-left:after {
content: '';
display: inline-block;
width: 20px;
height: 0.3px;
position: absolute;
left: 0;
transform-origin: top left;
transform: rotate(45deg);
}
.ta-weaponpImg-left:before {
top: -20px;
}
.ta-weaponpImg-left:after {
bottom: -20px;
transform: rotate(-45deg);
}
.ta-weaponpImg-right:before,
.ta-weaponpImg-right:after {
content: '';
display: inline-block;
width: 20px;
height: 0.3px;
position: absolute;
right: 0;
transform-origin: top right;
transform: rotate(-45deg);
}
.ta-weaponpImg-right:before {
top: -20px;
}
.ta-weaponpImg-right:after {
bottom: -20px;
transform: rotate(45deg);
}
.ta-weaponModal-leftGold:before,
.ta-weaponModal-leftGold:after,
.ta-weaponModal-rightGold:before,
.ta-weaponModal-rightGold:after {
background: #ffed10;
}
.ta-weaponModal-img img {
width: 100%;
}
此页面不支持夜间模式!
已进入夜间模式!
已进入普通模式!
搜索框不允许为空
签到成功!经验+5!芋圆币+2!
签到失败!今日已签到!
需要登录社区账号才可以进入!