记录工作中用到的css兼容性,日常更新

103 阅读1分钟

透明度:

  1.     filter:alpha(opacity=50);   
  2.       -moz-opacity:0.5;   
  3.       -khtml-opacity: 0.5;   
  4.       opacity: 0.5;

placeholder样式:

  1. ::-webkit-input-placeholder { /* WebKit browsers */ color: #fff!important;}
  2. :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #fff!important;}
  3. ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #fff!important;}
  4. :-ms-input-placeholder { /* Internet Explorer 10+ */ color: #fff!important;}

网页等比缩放:

@media (max-width: 1919px) and (min-width: 768px) { html { zoom: 80%; } @-ms-viewport { width: 1920px; } }