Get the App
SLTechnology News&Howtos  ›  Development  › 

What matters should be paid attention to when writing html+css code for website construction

Shulou Source: shulou.com Published: 2022-06-01 07:25:07 10月03日 Update

This article mainly explains the "website construction html+css code preparation should pay attention to what matters", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "website construction html+css code preparation should pay attention to what matters" bar!

1. When floating, remember to clear the float when there is no clear float. Right,bottom,left. So the margin:01px3px5px; result is borderless at the top, 1 pixel on the right, and so on.

two。 Make effective use of the coincident boundaries of pad and border. Using pad and border can avoid and prevent upper and lower div collapse. "reasonable control of upper and lower div spacing.

3. Remember that "PBL writing bordermargin and pad abbreviation syntax have a specific order, starting from the top clockwise rotation: top, there will be a running box. The page will be deformed."

4. Values that are not zero must be specified units. CSS needs to specify units for various values such as each fontmargin.

5. To solve the double margin problem of IE6 floating elements, this bug will appear when float:left and margin-left:100pxIE6 are set to a div. You just need to set up one more displai.

6. Important; if there is no way to solve some details, you can use this method. Firefox will automatically give priority to parsing import, while IE will ignore it.

Thank you for your reading, the above is the content of "what matters should be paid attention to when writing html+css code for website construction". After the study of this article, I believe you have a deeper understanding of what matters should be paid attention to when writing html+css code for website construction, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Items codes websites website construction construction floats problems learning up and down content units situations boundaries effective clear and so on pixels elements writing methods Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Xiaomi OPPO Reno NVidia MySQL