1,css去掉select默认样式
select::-ms-expand { display: none; }
select{width: 12%;
border: none;
outline: none;
/*将默认的select选择框样式清除*/
appearance:none;
-moz-appearance:none;
-webkit-appearance:none;
-ms-appearance:none;
border: 1px solid #ddd;
/*在选择框的最右侧中间显示小箭头图片*/
background: url(../img/arrow.png) no-repeat scroll right center transparent;
}
2,文本超出出现点点...
p {
display:block;
white-space:nowrap;
overflow:hidden;
text-overflow:ellipsis;
}
3. 多行文本超出出现点点点
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
4. 伪类清浮动
00002. .clearfix:after { content:"."; display:block; height:0; visibility:hidden; clear:both; }
00003. .clearfix { zoom:1; }
5..固定背景图片,不随页面滚动而滚动
background: url(../images/4.png) no-repeat;
background-size:100%;
background-attachment: fixed;
6.去除默认鼠标右键事件
//取消默认右键
$('.btm_c').bind('contextmenu',function(){
return false;
});
οnmοusedοwn="righthit()";
$('.btm_c').mousedown(function(e){
if(3 == e.which){
$(this).find(".edit").toggle();
event.stopPropagation();
}else if(1 == e.which){
}
});