css中优先级标志:!important
.errcss{
border: 1px solid #a93232;
box-shadow: 0 0 5px 3px rgba(173,0,0,.2);
}
.successcss{
border: 1px solid #29a744;
box-shadow: 0 0 5px 3px rgba(0,199,0,.2);
}
.as_bg1 {
background: url(../assure/images/as_bg.jpg) 100% 0 repeat-x fixed;
background-size: 100% 100%;
}
//解析时间戳(即时间毫秒数)
var d;
function unix_to_datetime(unix) {
if (unix!==null) {
d=new Date(parseInt(unix));
return d.getFullYear()+"-"+add_0(parseInt(d.getMonth())+1)+"-"+add_0(d.getDate())+" "+add_0(d.getHours())+":"+add_0(d.getMinutes())+":"+add_0(d.getSeconds());
} else {
return unix="没有时间";
}
}
function unix_to_date(unix) {
if (unix!==null) {
d=new Date(parseInt(unix));
return d.getFullYear()+"-"+add_0(parseInt(d.getMonth())+1)+"-"+add_0(d.getDate());
} else {
return unix="没有时间";
}
}
function add_0(times){
if(times.toString().length>0){
if(times.toString().length==1){
return "0"+times.toString();
}else{
return times;
}
}else{
return "";
}
}
/*图片根据窗口自动缩放*/css中
#img_samlbig {
max-100%;
myexpression(onload=function() {
this.style.width=(this.offsetWidth >document.getElementById("img_samlbig").scrollWidth*8/10)? "80%": "auto"
}
);
/*border:1px dashed #000;*/
}
//jquery的js与js之间引用js文件
$.getScript("assets/scripts/versionCheck.js");
qq客服网页授权步骤修改:http://www.jizhiweb.com/news/59.html
代码设置颜色渐变效果:
background: #71c5f2 url(bg.gif) repeat-x;//蓝色渐变