autoprefixer
Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website
npm downloads npm version npm license
autoprefixer類似套件:
npm下載趨勢
3 年
🌟 在 autoprefixer 的 README.md 中顯示即時使用量圖表,只需複製下面的代碼。
## Usage Trend
[![Usage Trend of autoprefixer](https://npm-compare.com/img/npm-trend/THREE_YEARS/autoprefixer.png)](https://npm-compare.com/autoprefixer#timeRange=THREE_YEARS)
Cumulative GitHub Star Trend
🌟 在 autoprefixer 的 README.md 中顯示 GitHub stars 趨勢圖表,只需複製下面的代碼。
## GitHub Stars Trend
[![GitHub Stars Trend of autoprefixer](https://npm-compare.com/img/github-trend/autoprefixer.png)](https://npm-compare.com/autoprefixer)
統計詳情
套件
下載數
Stars
大小
Issues
發布時間
許可
autoprefixer29,564,41622,452199 kB418 個月前MIT
autoprefixer 的 README

Autoprefixer Cult Of Martians

PostCSS plugin to parse CSS and add vendor prefixes to CSS rules using values from Can I Use. It is recommended by Google and used in Twitter and Alibaba.

Write your CSS rules without vendor prefixes (in fact, forget about them entirely):

::placeholder {
  color: gray;
}

.image {
  background-image: url(image@1x.png);
}
@media (min-resolution: 2dppx) {
  .image {
    background-image: url(image@2x.png);
  }
}

Autoprefixer will use the data based on current browser popularity and property support to apply prefixes for you. You can try the interactive demo of Autoprefixer.

::-moz-placeholder {
  color: gray;
}
::placeholder {
  color: gray;
}

.image {
  background-image: url(image@1x.png);
}
@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 2dppx) {
  .image {
    background-image: url(image@2x.png);
  }
}

Twitter account for news and releases: @autoprefixer.

Sponsored by Evil Martians

Docs

Read full docs here.