我有很多产品说明,我必须将材料细节分开。例如:
var desc = "All over print design SoulCal branding badge 80% Polyester, 20% Elastane Machine washable Keep away from fire."
function materialCutter(desc){
// some logic here...
// var material = "80% Polyester, 20% Elastane"
return material;
}
我认为我已经使用了“%”标志,但在这一点上说实话我被卡住了。
提前致谢,
答案 0 :(得分:1)
使用<html>
<a id="button" style: "text-decoration: none;" href="">
<span style="color: white;">Button</span>
</a>
<html>
功能:
#button {
background-color: #4686E8;
border-radius: 10px;
display: block;
width: 142px;
height: 36px;
border-top: 2px #4686E8 solid;
border-bottom: 2px #4686E8 solid;
border-left: 2px #4686E8 solid;
border-right: 2px #4686E8 solid;
cursor: pointer;
padding: 14px;
}
&#13;