Authored by zhangxiaoru

颜色去除两端空格

... ... @@ -374,7 +374,7 @@ function chosedLength() {
infoHtml,
choosedInfo = $('.choosed-info'),
notChoose = $('.not-choose'),
chosedStr = $chosedL.eq(0).html(),
chosedStr = $chosedL.eq(0).html().replace(/(^\s*)|(\s*$)/g, ""),
strlen = 0;
choosedInfo.removeClass('hide');
... ... @@ -389,8 +389,7 @@ function chosedLength() {
    } else {
      strlen ++;
}
if (strlen >= 18) {
if (strlen >= 16) {
chosedStr = chosedStr.substring(0, i) + '...';
break;
}
... ...
... ... @@ -20,7 +20,6 @@
.close {
float: right;
font-size: 80%;
width: 30px;
height: 30px;
margin: 16px 16px 0 0;
... ...