使用多媒体查询可以在指定的设备上使用对应的样式替代原有的样式。 以下实例中在屏幕可视窗口尺寸小于 480 像素的设备上修改背景颜色: @mediascreenand(max-width:480px){body{back...
scripttype=text/javascript$(function(){$(li).click(function(){$(this).toggleClass(enable);$(this).siblings().removeClass(enable);})});/script
1,单行溢出,超出部分显示...或者截取。前提必须有宽度。 width:xxpx;overflow:hidden;white-space:nowrap;text-overflow:ellipsis; 多行溢出 display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit...