Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the bottom part of the page frame with div+css

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to use div+css to achieve the bottom part of the page frame". In the daily operation, I believe that many people have doubts about how to use div+css to achieve the bottom part of the page frame. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubt of "how to use div+css to achieve the bottom part of the page frame". Next, please follow the editor to study!

Before we start writing code, let's analyze the figure from the outside to the inside:

First of all, the outermost box is implemented using the list ul tag.

The inner box is naturally implemented using li tags, but li is a block element and cannot be displayed on a line, so convert it to an inline element and use display:inline-block to achieve one-line display.

Pay attention to the text in the small box except. The rest are links, so use the a tag to implement it, but the a tag is an inline element, and the width and height cannot be set, so it has to be converted to a block element.

Will it be easier to achieve through the above analysis? Okay, now start writing the code.

Paging exercise .box {width:602px; height:42px; border: 1px solid # 000; box-sizing:border-box; margin:50px auto 0; list-style: none; padding:0px; font-size:0px; text-align:center;} .box li {height:26px Margin:7px 6px 0px; font-size:12px; display:inline-block;} .box li a {display:block; height:26px; background-color: gold; color:#000; font:12px/26px 'Microsoft Yahei'; text-decoration:none; padding:0px 7px } .box li a:hover {color:red; background-color: wheat;} previous page 1 2 3 4... 17 18 19 20 next page

At this point, the study on "how to use div+css to achieve the bottom part of the page frame" 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.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report