标签:
1 .inaline { 2 overflow: hidden; 3 white-space: nowrap; 4 text-overflow: ellipsis; 5 }
1 .intwoline { 2 display: -webkit-box !important; 3 overflow: hidden; 4 text-overflow: ellipsis; 5 word-break: break-all; 6 -webkit-box-orient: vertical; 7 -webkit-line-clamp: 2; //多少行 8 }
1 selector { 2 position: absolute; 3 top: 50%; 4 left: 50%; 5 z-index: 3; 6 -webkit-transform: translate(-50%,-50%); 7 }
1 .parent{ 2 justify-content: centent; //子元素水平居中 3 align-items: center; //子元素垂直居中 4 display: -webkit-flex; 5 }
1 body { 2 -webkit-user-select: none; 3 -moz-user-select: none; 4 -ms-user-select: none; 5 }
1 table { 2 table-layout: fixed; 3 } 4 td { 5 width: 100%; 6 word-break: keep-all; //不换行 7 white-space: nowrap; //不换行 8 overflow: hidden; 9 text-overflow: ellipsis; //当对象内文本溢出时显示省略号 10 }
1 div, li { 2 display:block; 3 white-space:nowrap; 4 overflow:hidden; 5 text-overflow:ellipsis; 6 }
1 .redPoint { 2 width: 10px; 3 height:10px; 4 background-color: #f00; 5 border-radius: 5px; 6 -moz-border-radius: 5px; 7 -webkit-border-radius: 5px; 8 position: absolute; 9 right: -10px; 10 top: 1px; 11 }
用例:
1 .maskLyayer { 2 position: absolute; 3 top: 0; 4 left: 0; 5 z-index: 1; 6 width: 100%; 7 height: 100%; 8 opacity: 0.6; 9 filter: alpha(opacity=60); 10 background-color: #000; 11 } 12 .div { 13 position: absolute; 14 top: 50%; 15 left: 50%; 16 z-index: 2; 17 transform: translate(-50%, -50%); 18 -ms-transform: translate(-50%, -50%); 19 -moz-transform: translate(-50%, -50%); 20 -webkit-transform: translate(-50%, -50%); 21 -o-transform: translate(-50%, -50%); 22 }
标签:
原文地址:http://www.cnblogs.com/aissd/p/4885134.html