While Ionic Framework component styles are self-contained, there are several global stylesheets that should be included in order to use all of Ionic's features. Some of the stylesheets are required in order for an Ionic Framework app to look and behave properly, and others include optional utilities to quickly style your app.
The following CSS file must be included in order for Ionic Framework to work properly.
This file is the only stylesheet that is required in order for Ionic components to work properly. It includes app specific styles, and allows the
color365体育投注开户 property to work across components. If this file is not included the colors will not show up and some elements may not appear properly.
365体育投注开户The following CSS files are recommended to be included in an Ionic Framework app. If they are not included, some elements may have undesired styles. If Ionic Framework components are being used outside of an app, these files may not be necessary.
Applies styles to
<html> and defaults
border-box. It ensures scrolling behaves like native in mobile devices.
Typography changes the font-family of the entire document and modifies the font styles for heading elements. It also applies positioning styles to some native text elements.
Makes browsers render all elements more consistently and in line with modern standards. It is based on Normalize.css.
365体育投注开户The following set of CSS files are optional and can safely be commented out or removed if the application is not using any of the features.
Adds utility classes to modify the padding or margin on any element, see CSS Utilities for usage information.
Adds utility classes to float an element based on the breakpoint and side, see CSS Utilities for usage information.
Adds utility classes to align the text of an element or adjust the white space based on the breakpoint, see CSS Utilities365体育投注开户 for usage information.
Adds utility classes to transform the text of an element to
capitalize based on the breakpoint, see
CSS Utilities for usage information.
Adds utility classes to align flex containers and items, see CSS Utilities365体育投注开户 for usage information.
Adds utility classes to hide any element based on the breakpoint, see CSS Utilities for usage information.