How to use css framework

醉折花枝作酒筹
Release: 2021-07-14 11:24:07
Original
2720 people have browsed it

Steps to use the css framework: 1. Set meta; 2. Reference the basic css before citing the css framework code; 3. Reference the main css in the css framework; 4. Reference the framework css you need.

How to use css framework

CSS frameworks are pre-prepared software frameworks that allow easier, more standards-compliant web design using the Cascading Style Sheet language. Most of these frameworks contain at least one grid design.

Steps to use css framework:

1. Set meta.

2. Reference the basic css before citing the css framework code.

3. Reference the main css of the css framework.

4. Quote the framework css you need.

Take pure as an example to illustrate the use of css framework:

First step:

Set meta

<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0;
 maximum-scale=1.0; user-scalable=0;" />
Copy after login

Second step:

Refer to the basic css, that is to say, before all the code that references pure, a css needs to be introduced

<link rel="stylesheet" href="yui.yahooapis.com/pure/0.5.0/base-min.css">
Copy after login

The third step:

Reference the main css of pure

<link rel="stylesheet" href="yui.yahooapis.com/pure/0.5.0/pure-min.css">
Copy after login

Step 4:

Introduce the pure css you need. Here, let’s start with the responsive layout:

<!--[if lte IE 8]>
<link rel="stylesheet" href="yui.yahooapis.com/pure/0.5.0/grids-responsive-old-ie-min.css">
<![endif]-->
<!--[if gt IE 8]><!-->
<link rel="stylesheet" href="yui.yahooapis.com/pure/0.5.0/grids-responsive-min.css">
<!--<![endif]-->
Copy after login

Recommended learning: css video tutorial

The above is the detailed content of How to use css framework. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template