1: What role does .list1 {} play in CSS? We often see fields like this in CSS files. There is nothing in the curly brackets. What does this do?
2: I recently downloaded several web page templates and studied the source codes. The biggest confusion is that there are too many settings for color and font size, which makes it a bit dizzy. , why the font size has been set in BODY, but the size is also set in other small parts? ?
3: There are so many colors, and they all use # plus numbers and letters. Is it necessary to remember the commonly used ones? If it is not necessary, where can I find it when I need it? ?
Dashenmen come in and take a look
Dashenmen come in and take a look
1. .list1 is the class selector of css, and commonly used ones include id tag selectors, etc.
For example, if
.test { color:red; }
is defined, then you can write it like this in HTML
1 Empty ones have no effect
2 For small parts, reset them as needed. If the font is unnecessary
3 Don’t remember it, who can remember it?