<br/>
Css (Cascading Style Sheets, cascading style sheets) is a page beautification method that achieves the effect of beautifying the page by editing the object properties of Css. The basic unit of operation of CSS is an object. Using CSS feels like using a function in C++/C. CSS objects are like functions, which are used through definition, declaration, and call.
CSS has three selectors (object definition and usage methods): tag selector, category selector, ID selector
CSS has four inclusion methods: inline, embedded, link, and imported
Tag selector:
Definition: referenced style object name {tag attribute: attribute value; tag attribute: attribute value;…….}
eg: h1,h2{text-align: center; color: red } Tag attribute: attribute value; Tag attribute: attribute value;…….} or
. Class name {Tag attribute: attribute value; Tag attribute: attribute value; …….}
Label attribute: attribute value; : center; }
.right{ text-align: right; ;……..
(*Difference: The latter format means that all tags whose class attribute value is the class name comply with the style defined by the class)
(eg: .right{ is defined text-align: right;}, when called, as long as the label with the right attribute is called through class, the right attribute can be displayed.
…..
;…
;…; and other tags all show the right-aligned attribute). ID selector:
Definition: #id name {tag attribute: attribute value; tag attribute: attribute value;…….}
eg: #sample{font-family:宋体; don't-size:60pt;}
Use:
……
Inline:
No need to define a selector, use the style attribute to directly style the element
eg:
...
Embedded:
First define the selector and define the style sheet between
. R EG: re<html> <head> <title>xxxxxx</title> <style type=”text/css”> p{color: #000FF;} .info{font-size: 12px;} </syle> </head> </html>E Links: The object defined is placed in a file with a .css as an extension. , between . eg: Import: is similar to the link method, except that it is imported through the import method. eg: Priority of CSS style sheet: Embedded style sheet> Linked style> External link style> Browser default
<br/>

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version
Useful JavaScript development tools

Atom editor mac version download
The most popular open source editor

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software