标签:ansi 溢出 常见问题 middle div tab hit 系统 outer
当用户点击iOS的Safari浏览器中的链接或JavaScript的可点击的元素时,覆盖显示的高亮颜色。该属性可以只设置透明度。如果未设置透明度,iOS Safari使用默认的透明度。当透明度设为0,则会禁用此属性;当透明度设为1,元素在点击时不可见。
-webkit-appearance:none;去除系统默认appearance的样式,常用于IOS下移除原生样式
-webkit-transform-style:preserve-3d;或-webkit-backface-visibility:hidden;
#test{width:150px;white-space:nowrap;}
/*相反文本溢出边界省略号*/
#test{width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
方法1:img{display:block;} 方法2:img{vertical-align:top;}
#test{display:table-cell;*display:block;*position:relative;width:200px;height:200px;text-align:center;vertical-align:middle;}
#test p{*position:absolute;*top:50%;*left:50%;margin:0;}
#test p img{*position:relative;*top:-50%;*left:-50%;vertical-align:middle;}
.outer{width:200px;height:200px;background:rgba(0,0,0,.2);background:#000\9;filter:alpha(opacity=20)\9;}
.outer .inner{position:relative\9;}
<div class="outer">
<div class="inner">我是不透明的内容</div>
</div>
-webkit-touch-callout:none ;当你触摸并按住触摸目标时候,禁止或显示系统默认菜单。
标签:ansi 溢出 常见问题 middle div tab hit 系统 outer
原文地址:http://www.cnblogs.com/tiantianleyuan123/p/6650492.html