In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly introduces "how to achieve the CSS and layout of web page cut images". In the daily operation, I believe that many people have doubts about how to achieve the CSS and layout of web page cut images. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to realize the CSS and layout of web page cut images". Next, please follow the editor to study!
The first point: generally speaking, the LOGO part of our website usually uses H1yoga links, using the word-for-word technology on CSS, specifying the width and height of the object, and setting element An as a block element. This is conducive to the later optimization of the website.
The code is as follows:
Background:url (.. / images/logo.jpg) left top no-repeat;width:300px;height:75px;text-indent:300px; white-space:nowrap; overflow:hidden
Second point: a phone to the right of LOGO on this site. In fact, we can understand this part as a two-column layout. It's the same place. You can use pictures for words. Use a combination of two-column layouts. Is it easy to achieve.
The third point: two-column layout. There is a gap in the middle. But what I want to emphasize is that layouts don't have to be DIV and DIV, remember that layouts can be implemented as long as they are block elements, as follows:
Div and div H2 and p
Li and li (navigation is, isn't it? )
PS: very important: floating can be realized as long as it is a block element (H1MagneLiDiv), wide and high.
The fourth point: when implementing a layout, we usually encounter two situations:
1. Calculate the width properly. Every pixel is not bad. that
2. As shown in the third point, if the width is not calculated in place, there may be some spacing in the middle, so the layout below should consider using clean floats.
Clear floats:
The code is as follows:
.clear {clear:both;}
Fifth, navigation, generally, when we make navigation, it is based on UL,LI, and most of the time it is a control based on background pictures, which is not much to say.
Sixth, there will be a product display on many websites. Be sure to learn to use dl dt dd as follows.
The code is as follows:
You can put pictures here.
It is possible to put the title.
This can be described in detail.
Seventh: the main content area of a website is nothing more than a two-column layout, a three-column layout, or a four-column layout. What I want to emphasize to you is that everything is a box, calculated in the way of a box model, and our block elements add up to three value-width classes. Cannot exceed the width of the outer DIV, the outer width of the width+border+padding+margin=
I would like to recommend a beginner's way to write, how to write:
Write three columns first, as follows:
The code is as follows:
one
two
three
Then carry on the CSS control: first calculate the float, and width, all.
Finally: fill in the contents of each column
At this point, the study on "how to achieve the CSS and layout of web page cut images" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.