{"id":16716315,"url":"https://github.com/gucong3000/postcss-pie","last_synced_at":"2025-04-10T06:32:56.119Z","repository":{"id":57328261,"uuid":"56830574","full_name":"gucong3000/postcss-pie","owner":"gucong3000","description":"makes IE capable of rendering several of the most useful CSS3 decoration features.","archived":false,"fork":false,"pushed_at":"2020-06-02T13:45:10.000Z","size":169,"stargazers_count":5,"open_issues_count":9,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T07:39:12.939Z","etag":null,"topics":["border-image","border-radius","box-shadow","css3","gradient","ie","pie","postcss"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gucong3000.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-22T06:09:29.000Z","updated_at":"2021-01-02T00:26:37.000Z","dependencies_parsed_at":"2022-09-18T17:01:10.188Z","dependency_job_id":null,"html_url":"https://github.com/gucong3000/postcss-pie","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gucong3000%2Fpostcss-pie","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gucong3000%2Fpostcss-pie/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gucong3000%2Fpostcss-pie/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gucong3000%2Fpostcss-pie/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gucong3000","download_url":"https://codeload.github.com/gucong3000/postcss-pie/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247874637,"owners_count":21010718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["border-image","border-radius","box-shadow","css3","gradient","ie","pie","postcss"],"created_at":"2024-10-12T21:12:54.983Z","updated_at":"2025-04-10T06:32:56.052Z","avatar_url":"https://github.com/gucong3000.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[postcss](https://github.com/postcss/postcss)-[pie](http://css3pie.com/)\n======\n\n[![NPM version](https://img.shields.io/npm/v/postcss-pie.svg?style=flat-square)](https://www.npmjs.com/package/postcss-pie)\n[![Travis](https://img.shields.io/travis/gucong3000/postcss-pie.svg?\u0026label=Linux)](https://travis-ci.org/gucong3000/postcss-pie)\n[![AppVeyor](https://img.shields.io/appveyor/ci/gucong3000/postcss-pie.svg?\u0026label=Windows)](https://ci.appveyor.com/project/gucong3000/postcss-pie)\n[![Codecov](https://img.shields.io/codecov/c/github/gucong3000/postcss-pie.svg)](https://codecov.io/gh/gucong3000/postcss-pie)\n\n使IE能够显示一些最有用的CSS3的装饰特性。\n\n------\n\n[English](README.md)\n\npostcss-pie 由[PostCSS](https://github.com/postcss/postcss)与[PIE](http://css3pie.com/)驱动，让IE6-IE9兼容这些CSS3特性:\n* [border-radius](https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-radius)\n* [box-shadow](https://developer.mozilla.org/zh-CN/docs/Web/CSS/box-shadow)\n* [border-image](https://developer.mozilla.org/zh-CN/docs/Web/CSS/border-image)\n* [CSS3 Backgrounds](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Background_and_Borders/Using_CSS_multiple_backgrounds)\n* [Gradients](https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Images/Using_CSS_gradients)\n\n## Usage\n\n[下载PIE](http://css3pie.com/download/)，解压所有文件，部署到web服务器的某个目录， 如`/pie/`\n配置你的postcss\n\n```JavaScript\nvar postcss = require('postcss');\nvar pie = require('postcss-pie');\n\npostcss([\n\tpie({\n\t\t// 必须使用绝对地址，且必须与html同一个域名，不得跨域，不得使用CDN地址。\n\t\thtcPath: '/pie/PIE.htc',\n\t\t// PIE的其他文件所在目录的路径，必须是完整url，可以是cdn地址。\n\t\tpieLoadPath: 'http://server.com/pie/',\n\t});\n]);\n```\n\n## [确保正确的Content-Type](http://css3pie.com/documentation/known-issues/#content-type)\n\n如果IE在请求PIE.htc文件时，HTTP响应头中的Content-Type不是\"text/x-component\"，会造成功能失效。\n详见[PIE相关文档](http://css3pie.com/documentation/known-issues/#content-type)\n\n## [PIE的文档](http://css3pie.com/documentation/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgucong3000%2Fpostcss-pie","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgucong3000%2Fpostcss-pie","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgucong3000%2Fpostcss-pie/lists"}