How to improve the css technology, ask the seniors to give us some advice.

at first I thought css was simple, but I just wrote some styles

now it is found that these attributes influence each other and produce different effects,
such as the effect of an attribute, in this case, in that case, it feels a little messy

now you"ve learned
various elements / pseudo-elements / pseudo-class selectors, fonts / text / lists / tables, box models, backgrounds, borders, positioning, 2d3d, transition animation, and the basics
how to improve next? Want to know something in depth

for example:

  • the default style of various elements at the beginning, such as whether the default width of div is auto or 100%
  • float, locate, and what else will take the element out of the document stream
  • The influence of
  • elements on various aspects when they leave the document stream, such as
  • after the element floats, it becomes an inline block element.
  • there are various units, such as whose percentage units are relative to different attribute values
  • who is the parent of the html element
  • setting the line height to the text will stretch the element of the wrapped text high, provided that the element is not given a fixed height. How should this be understood?

in short, there may be a lot of knowledge that I haven"t mentioned here. Where can I learn it?

May.25,2021

practice is the only criterion for testing truth. More practice, summing up


it may be difficult to recommend you to read a book, but if you read it, you will gain a lot. More than 95% of front-end practitioners

Zhang Xinxu's "css World"


css this thing wants to learn in depth is not like some js frameworks can be step by step, although easy to use, but later will find that the learning curve is simply heaven, and knowledge is particularly miscellaneous, very chaotic, so it is better to accumulate more, generally step on more holes, also know more.


directly imitate the website to do demo,

Menu