📜  W3.CSS-容器

📅  最后修改于: 2020-10-17 05:09:10             🧑  作者: Mango


HTML5具有以下容器元素-

  • -为HTML内容提供通用容器。

  • -表示标题部分。

  • -表示页脚部分。

  • -代表文章。

  • -为各种类型的节提供通用容器。

W3.CSS将w3-container作为主要类来为所有上述容器设置样式。 W3.CSS还具有其他类,例如w3-borderw3-redw3-tealw3-padding-32 ,以向容器添加更多样式属性。

下面的示例展示了使用w3容器类来设置各种容器的样式。

w3css_containers.htm

The W3.CSS Containers
      
      
   
   
   
      

HTML5 Tutorial

HTML5 is the latest and most enhanced version of HTML. Technically, HTML is not a programming language, but rather a mark up language.

The latest versions of Apple Safari, Google Chrome, Mozilla Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality. The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have excellent support for HTML5.

HTML5 is designed, as much as possible, to be backward compatible with existing web browsers. New features build on existing features and allow you to provide fallback content for older browsers.

Copyright @TutorialsPoint.COM

结果

验证结果。

W3.CSS还为容器提供隐藏/关闭功能。请参阅以下示例-

w3css_hide_container.htm

The W3.CSS Containers
      
      
   
   
   
      
X

Close container by clicking on the X in the upper right corner.

结果

验证结果。