Skip to content
项目

autoprefixer/autoprefixer.github.io

在 GitHub 查看

关于

在线使用 Autoprefixer:为 CSS 添加所需的浏览器厂商前缀,并移除不必要的前缀

开发工具

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

Autoprefixer Online

Interactive web demo for Autoprefixer.

Paste CSS, choose a Browserslist query, and see the prefixed output immediately in the browser.

Live Site

autoprefixer.github.io

What Is Inside

  • A small Vite app powered by Autoprefixer and PostCSS.
  • Browser-side CSS processing, so the demo works without a backend.
  • Browserslist input with a link to inspect the selected browsers on browsersl.ist.
  • Localized pages for English, Russian, French, Brazilian Portuguese, and Simplified Chinese.
  • Static output generated into docs/ for GitHub Pages.

Getting Started

Install dependencies:

npm install

Run the development server:

npm run dev

Build the static site:

npm run build

Preview the generated docs/ build:

npm run preview

Project Structure

.
├── index.html          # English page
├── ru/                 # Russian page
├── fr/                 # French page
├── pt-br/              # Brazilian Portuguese page
├── zh-cn/              # Simplified Chinese page
├── src/                # JavaScript, SCSS, and app configuration
├── public/             # Static assets copied by Vite
└── docs/               # Built site for GitHub Pages

Development Notes

  • The default demo CSS and browser target are defined in src/config.js.
  • Vite builds every localized HTML file through vite.config.js.
  • npm run build clears and recreates docs/, so expect generated assets to change after a build.
  • The site enables Autoprefixer's grid option for the demo output.

Contributing

Small fixes are welcome: copy improvements, translation updates, UI tweaks, and dependency maintenance all help keep the demo useful.

When changing user-facing text, update the matching localized HTML files where possible. When changing app behavior, run a local build before opening a pull request.

Related Projects

探索相关项目

加载中…