View CSS source files

Table of contents

1. What is CSS (Cascading Style Sheets)

Two, the characteristics of CSS

2.1 Rich style definition

2.2 Ease of use and modification

2.3 Multi-page application

2.4 Cascading

2.5 Page Compression

3. Exercises


1. What is CSS (Cascading Style Sheets)

        Cascading Style Sheets (full name in English: Cascading Style Sheets) is a computer language used to represent file styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standardized Generalized Markup Language). CSS can not only decorate web pages statically, but also dynamically format elements of web pages with various scripting languages.

        CSS can precisely control the layout of element positions in web pages at the pixel level, supports almost all font sizes and styles, and has the ability to edit web page objects and model styles.

Two, the characteristics of CSS

2.1 Rich style definition

CSS provides a rich document style appearance, as well as the ability to set text and background properties; allows to create a border for any element, as well as the distance between the element border and other elements, as well as the distance between the element border and the element content; allows you to change the text at will Capitalization, decoration, and other page effects.

2.2 Ease of use and modification

        CSS can define the style in the style attribute of the HTML element, or define it in the header part of the HTML document, or declare the style in a special CSS file for reference by the HTML page. In short, a CSS style sheet can store all style declarations in a unified manner for unified management.

        In addition, elements with the same style can be classified and defined with the same style, a certain style can be applied to all HTML tags with the same name, or a CSS style can be assigned to a certain page element. If we want to modify the style, we only need to find the corresponding style declaration in the style list and modify it.

2.3 Multi-page application

A CSS style sheet can be stored separately in a CSS file, so that we can use the same CSS style sheet in multiple pages. Theoretically, a CSS style sheet does not belong to any page file, and can be referenced in any page file. In this way, the unity of multiple page styles can be realized.

2.4 Cascading

Simply put, cascading is to set the same style multiple times on an element, which will use the attribute value set last time. For example, if you use the same set of CSS style sheets for multiple pages in a site, and you want to use other styles for some elements in some pages, you can define a style sheet for these styles and apply them to the pages. These later defined styles will rewrite the previous style settings, and what you see in the browser will be the last style effect.

2.5 Page Compression

In websites that use HTML to define page effects, a large number of or repeated tables and font elements are often required to form text styles of various specifications. As a result, a large number of HTML tags will be generated, thereby increasing the size of the page file. Putting the style declaration into the CSS style sheet alone can greatly reduce the size of the page, so that the time used when loading the page will also be greatly reduced. In addition, the multiplexing of CSS style sheets greatly reduces the size of the page and reduces the download time.

3. Exercises

The title gives a website address, open the website, check the source code of the website page, find a string of hexadecimal numbers, which are obtained by hexadecimal encoding , and decode it with a hexadecimal decoding tool to get the flag.

Guess you like

Origin blog.csdn.net/weixin_62707591/article/details/130676941