In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about how to deeply analyze the concept and usage of DIV. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article.
The concept of DIV is often encountered in the process of learning web design. I would like to share with you the concept and usage of DIV. DIV elements are elements that provide structure and background for block-level content in HTML documents.
Introduction to DIV
DIV is also called integral division in programming, that is, integers that can only be quotient. DIV elements are elements that provide structure and background for block-level content in an HTML document. Everything between the start and end tags of the DIV is used to form this block, and the properties of the elements contained in it are controlled by the attributes of the DIV tag, or by formatting the block using a style sheet.
Location and hierarchy of CSS units-div tag
We all know that using HTML to locate text and images on a web page is a "heartbreaking" thing. We must use table tags and implicit GIF images, even if this does not guarantee accurate positioning, because different browsers and operating platforms will change the results displayed.
And CSS can give you a glimmer of hope. With the CSS attributes we will learn today, you can precisely set the location of the elements, stack the located elements on top of each other, and. And. Take your time and see for yourself!
CascadingStyleSheets (CSS) is the foundation of DHTML. CSS is used to set how the elements on your web page are displayed. CascadingStyleSheetsPositioning (CSS-P) is an extension of CSS that can be used to control the position of anything on a web page or in a window. Please remember these two nouns: CSS and CSS-P.
Use DIV tags
When we use CSS-P, we mainly use it on DIV (division) tag. When you put text, images, or others in DIV, it can be called "DIVblock", or "DIVelement" or "CSS-layer", or simply "layer". In Chinese, we call it "hierarchy". So when you see these nouns later, you will know that they refer to a HTML in DIV.
The method of using DIV is the same as that of other tag: ThisisaDIVtag.
If you use DIV alone without any CSS-P, it will have the same effect on a web page as it does in a web page.
But when we use CSS-P in DIV, we can strictly set its location. First we need to give the DIV that can be controlled by CSS-P an ID or its name. For example, we give the following DIV the name truck. The purpose of giving a name is that we can use JavaScript to control it later, such as moving it or changing some of its properties, and so on.
The above is how to deeply analyze the concept and usage of DIV. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.