87,994
社区成员
发帖
与我相关
我的任务
分享for(var i = 1; i <= monDaynum; i++) {
var subContent = document.createElement("div");
subContent.className = "canChoose";
if(nowDay === i) {
subContent.style.borderBottomColor = "red";//这样更改的是第一个CSS样式的值
} else {
}
if(i == nowDay) {
subContent.classList.add("today");
}
subContent.innerHTML = i;
el.appendChild(subContent);
}.calendar-content .canChoose {
color: #4A494A;
font-size: 14px;
font-weight: bold;
border-bottom: 1px solid #BBBBBB;
}.calendar-content .canChoose:after {
width: 20px;
margin-top: 5px;
margin-left: auto;
margin-right: auto;
border-bottom: 8px solid #5A8C19;/*Change the color here*/
border-radius: 10px;
content: "";
display: block;
}