Cookbook template - CSS: Cascading Style Sheets 编辑

Note: This is a template page for a CSS Cookbook page. Please use this as a raw template when you create a new cookbook page.
Comment in italics are information about how to use part of the template.

Description of the problem this recipe solves or the pattern you are demonstrating.

Requirements

What does this pattern need to include, or what problems does it need to solve? List that here.

Recipe

Change the path to the example below to point to your merged example. The last parameter is the live example height, which you can change as needed.

Change the link to point to your merged download version.

Download the example

Choices made

Explain your decisions when creating the pattern. Why did you choose a certain method? If you want to add an additional example here — for example a version with fallbacks, please do. This section is deliberately loose as patterns range from the very simple to more complex.

Useful fallbacks or alternative methods

If there are useful alternative methods for building the recipe, or fallback recipes to use if you have to support non-supporting browsers, include them in separate sections down here.

Accessibility concerns

Include this is there are any specific things to watch out for in regard to accessibility. If not relevant for your pattern this can be omitted.

Browser compatibility

BCD tables only load in the browser

The various layout methods have different browser support. See the charts below for details on basic support for the properties used.

The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.

Include the compat data for key properties you used, as in the example below which includes align-items.

align-items

See also

  • Links of link of related properties: example-property
  • Links to article showing how to use the property in context: "Using … article"
  • Very good external links. Don't be afraid of external links, but they should be outstanding, and not only mention minor details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:91 次

字数:3647

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文