web 3d图形渲染器
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.3 KiB

  1. # @csstools/normalize.css [<img src="https://csstools.github.io/normalize.css/logo.svg" alt="normalize" width="90" height="90" align="right">][@csstools/normalize.css]
  2. [@csstools/normalize.css] is a CSS library that provides consistent,
  3. cross-browser default styling of HTML elements.
  4. ## Usage
  5. ```html
  6. <link href="https://unpkg.com/@csstools/normalize.css" rel="stylesheet" />
  7. ```
  8. ### Install
  9. ```sh
  10. npm install --save @csstools/normalize.css
  11. ```
  12. #### Webpack Usage
  13. Import [@csstools/normalize.css] in CSS:
  14. ```css
  15. @import '~@csstools/normalize.css';
  16. ```
  17. Alternatively, import [@csstools/normalize.css] in JS:
  18. ```js
  19. import '@csstools/normalize.css';
  20. ```
  21. In `webpack.config.js`, use the appropriate loaders:
  22. ```js
  23. module.exports = {
  24. module: {
  25. rules: [
  26. {
  27. test: /\.css$/,
  28. use: [ 'style-loader', 'css-loader' ]
  29. }
  30. ]
  31. }
  32. }
  33. ```
  34. **Download**
  35. See https://csstools.github.io/normalize.css/latest/normalize.css
  36. ## What does it do?
  37. * Normalizes styles for a wide range of elements.
  38. * Corrects bugs and common browser inconsistencies.
  39. * Explains what code does using detailed comments.
  40. ## Browser support
  41. * Chrome (last 3)
  42. * Edge (last 3)
  43. * Firefox (last 3)
  44. * Firefox ESR
  45. * Opera (last 3)
  46. * Safari (last 3)
  47. * iOS Safari (last 2)
  48. * Internet Explorer 9+
  49. ## Contributing
  50. Please read the [contribution guidelines](CONTRIBUTING.md) in order to make the
  51. contribution process easy and effective for everyone involved.
  52. ## Similar Projects
  53. - [opinionate.css](https://github.com/adamgruber/opinionate.css) - A supplement
  54. to normalize.css with opinionated rules.
  55. - [sanitize.css](https://github.com/csstools/sanitize.css) - An alternative to
  56. normalize.css, adhering to common developer expectations and preferences
  57. - [remedy.css](https://github.com/mozdevs/cssremedy) - An alternative to
  58. normalize.css, adhering to different common developer expectations and
  59. preferences.
  60. - [modern-normalize.css](https://github.com/csstools/sanitize.css) - An
  61. alternative to normalize.css, adhering to a minimal set of normalizations and
  62. common developer expectations and preferences.
  63. ## Acknowledgements
  64. normalize.css is a project by [Jonathan Neal](https://github.com/jonathantneal),
  65. co-created with [Nicolas Gallagher](https://github.com/necolas).
  66. [@csstools/normalize.css]: https://github.com/csstools/normalize.css