In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "what is a css file". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it slowly to study and learn "what is a css file" together!
css file is a text file written using CSS syntax rules, with the extension ".css"; it is a file used in conjunction with html language to make web pages, its role is mainly to control the layout of html documents, simply to control the display appearance of web pages.
Operating environment of this tutorial: Windows 7 system, CSS3 && HTML5 version, Dell G3 computer.
Css files are.css suffix name, we see.css suffix file is css file.
CSS files, in fact, is a text file itself, just using CSS specified syntax rules to write, so that browsers can recognize.
CSS file is a file used in conjunction with html language to make web pages. Its role is mainly to control the layout of html articles. Simply put, it controls the display appearance of web pages.
Css file in addition to control the role of page layout, it can also be a good html code and css code separation, so that content and layout independently written, do not interfere with each other, more clearly organized.
CSS files can be placed in different HTML files, so that all pages of the website style uniform; moreover, CSS code into a CSS file to facilitate management, reduce code and maintenance time; when modifying CSS files, all HTML files that apply this CSS file will be updated, rather than having to retrieve all pages from the server and upload them after modification.
HTML calls CSS file methods
1. Link
Link style links external style sheet files to HTML documents through HTML tags, which is also the most widely used way on the web site, but also the most practical way. This method completely separates HTML documents from CSS files, realizes the complete separation of structure layer and presentation layer, and enhances the extensibility of web page structure and the maintainability of CSS styles.
Grammar:
2. Import (@import)
Import Styles Use the @import command to import external style sheets.
Imports load CSS files after the entire page loads, so this causes a problem where large pages display unstyled pages first, then flash before the page styles appear. This is a flaw inherent in import.
There are six ways to write imported styles:
@import CSS file path;@import 'CSS file path';@import "CSS file path";@import url(CSS file path);@import url ('CSS file path');@import url("CSS file path"); Thank you for reading, the above is the content of "what is a css file", after the study of this article, I believe everyone has a deeper understanding of what is a css file, and the specific use needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.