css强制换行 word-wrap:break-word;
强制不换行,多余用省略号代替 一行 overflow: hidden;white-space: nowrap;text-overflow: ellipsis;
强制不换行,多余用省略号代替 两行 overflow: hidden;text-overflow: ellipsis;display: -webkit-box;-webkit-line-clamp: 2;-webkit-box-orient: vertical;
文字两端对齐 text-align:justify;text-align-last:justify;
图片垂直居中 vertical-align:middle;width:100%; height:auto;
禁用网站上的右侧拦截功能
document.οnkeydοwn=function(){}
document.onselectstart=function(){}
document.body.οncοpy=function(){}
document.οncοntextmenu=function(){}
手机上点击A标签时,去掉默认的背景颜色
a{-webkit-tap-highlight-color:transparent;}
IE低版本下,设置背景图片的尺寸100%时的方法:
background:url(../image/Footer_07.jpg) no-repeat center center;
background-size: cover;
-ms-behavior: url(backgroundsize.min.htc);
behavior: url(backgroundsize.min.htc);
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
src='../image/Footer_07.jpg',sizingMethod='scale');