发布网友 发布时间:2022-04-23 12:05
共1个回答
热心网友 时间:2023-07-31 08:24
没有找到对应的 #mod_cals 模块,说明该模板没有对日历模块进行设置,使用的是默认的显示方法。
很简单,只需要在模板 CSS 代码中添加这样一段文字:
#mod_cals.mod{background: no-repeat 2% 0%;}
就行了。
你可以参考这个模板,这个模板的日历就是透明的:
http://hi.baidu.com/msy0613/modify/preview/194f58ea3f6b53d3d439c9c4.css
这个模板的日历模块是这么写代码的:
/*日历*/
#mod_cals.mod{background: no-repeat 2% 0%;}
div#cals{margin-left:-10px;background: ;border:2px solid #4AAAC3;text-align:center;padding:0px;padding-top:5px}
div#cals .cal_yr table{border:0px;background:none;}
div#cals tr{background:;}
div#cals td{text-align:center;font-family:georgia;color:#666;font-size:12px;font-weight:bold;padding:2px;line-height:14px;white-space:nowrap;background:#;filter:alpha(opacity=50);}
div#cals .cal_yr .cal_pre{font-size:8px;background:url(https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/css/pic/item/d157d7110fb1f471cb80c433.jpg) no-repeat center center;padding-left:2px}/*上一月箭头(正常)*/
div#cals .cal_yr .cal_nxt{font-size:8px;background:url(https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/css/pic/item/d157d7110fb1f471cb80c433.jpg) no-repeat center center;padding-left:2px}/*下一月箭头(正常)*/
div#cals .cal_yr .cal_pre_ovr{font-size:8px;background:url(https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/css/pic/item/860a4bdd0c4e38d68c102953.jpg) no-repeat center center;padding-left:2px;cursor:pointer}/*上一月箭头(鼠标悬停)*/
div#cals .cal_yr .cal_nxt_ovr{font-size:8px;background:url(https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/css/pic/item/860a4bdd0c4e38d68c102953.jpg) no-repeat center center;padding-left:2px;cursor:pointer}/*下一月箭头(鼠标悬停)*/
div#cals *.cal_active{border:0px;color:#4AAAC3;text-decoration:none;font-weight:bold;}/*有更新的日期效果*/
div#cals *.cal_select{border:0px;background: no-repeat center;color:#4AAAC3;text-decoration:none;font-weight:bold} /*有更新的日期鼠标移上效果*/
div#cals .today{color:#666;padding:2px;border:1px dashed #B3B3B3;background: no-repeat left;line-hight:20px;font-weight:bold;}/*今日*/
div#cals .cal_date{color:#4AAAC3 border:0px solid #cccccc;background-color:#none}/*普通日期*/
div#cals .yr_normal{margin-left:-10px;border:0px solid #4AAAC3;line-height:14px;}
div#cals .mth_normal{margin-left:-10px;border:0px solid #4AAAC3;line-height:14px;}
/*年,月选择器普通状态*/
div#cals .mth_sel{margin-left:-10px;border:0px solid #4AAAC3 ;background(https://gss0.baidu.com/70cFfyinKgQFm2e88IuM_a/css/pic/item/e0250038ac75d52c96ddd833.jpg);padding:0;line-height:14px;cursor:pointer}/* 年,月选择器鼠标移上状态*/