In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use CSS to build a new DIV box related knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this article on how to use CSS to build a new DIV box will have a harvest, let's take a look.
1. CSS attributes and annotations to be used
1. Width:450px configure css width 450px
2. Height:100px sets css height 100px
3. Border:1px solid # F00 setup equipment red css border 1px
In order to observe the results of setting the width 450px height 100px box style, CSS5 added a 1px wide red border to the box in the example.
Second, DIV+CSS broken example spoofing program
This example CSS5 has been developed in DW software, so if you want to follow the real practice example, you need to install Dreamweaver (dw) software.
The first step is to open the DW software.
Screenshot of the interface after the dw software is opened
Step 2: create a new html
After opening the DW software, use the shortcut key "ctrl+n" (or click "File"-> decide "New"), and the creation tab window will pop up as follows
A screenshot of the new tab pops up
Follow the figure above and click "set up" a scale HTML.
Construction HTML screenshot, choose "split" form
The third step is to set up the title tag content, and start to set up the CSS code
After the CSS5 instance modifies the title label name, use the style tag in the HTML to create the CSS instance code.
1. Complete the div css code of the instance below
Create a new box instance for CSS5
. divcss-box {width:450px;height:100px;border:1px solid # F00}
Here we simplify the html code, simplify the DOCTYPE html, and name the box DIV ".divcss-box", which we will use with CLASS.
2. Complete the screenshot of CSS code
Take a screenshot after writing the CSS code
In the fourth step, body builds the div box, and applies the creation of the CSS selector attribute class ".divcss-box" 1. The new div,class uses the webHTML code after the new CSS class.
Create a new box seed instance for CSS5
. divcss-box {width:450px;height:100px;border:1px solid # F00}
CSS5 box instance
2. Incomplete screenshot of example DW software
Screenshot of broken example code and result of DW software
3. To create a new DIV box browser with css width 450pxMagol and high 100px screenshot, to test the hunter, you first need to live on this web page and use the shortcut key "ctrl+s" in the DW software to keep the HTML instance file on the desktop.
Pop-up life tab, in order to facilitate reading this case, advocate saving to the desktop, you decide the right "desktop", the future "file name", named "index.html".
Finally, find the index.html web page file on your desktop (if there is no html expansion name, you need to set the display extension name) and use a reader to open it.
This is the end of the article on "how to use CSS to create a new DIV box". Thank you for reading! I believe you all have a certain understanding of "how to use CSS to build a new DIV box". If you want to learn more, you are welcome to 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.