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 write field grid list style with CSS3

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)05/31 Report--

The main content of this article is to explain "how to write the field grid list style using CSS3". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "how to write the field grid list style using CSS3".

CSS

Ul li {list-style: none;}. Mp-list {position: relative; overflow: hidden; z-index: 0; background-color: # fff;}. Mp-list:before {content:'; position: absolute; width: 33.33% Left: 33.33%; height: 100%; border-left: .02rem solid # ddd; border-right: .02rem solid # ddd;}. Mp-list li {width: 33.33%; height: 2remm; line-height: 2remm; font-size: .28rem Text-align: center; border-bottom: .02rem solid # ddd; margin-bottom:-1px; float: left; position: relative; z-index: 10; color: # 212121;} .mp-list li a {color: # 212121; display: block Overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .28rem;}

HTML

Hong Kong, Macao, Taiwan, Bangkok, Singapore, Seoul, Tokyo, Jeju Island Pattaya when displaying 4 columns, add a style to: after, pay attention to the need to change the location of li's width, .mp-list:before. . mp-list:after {content:'; position: absolute; width: 10%; left: 75%; height: 100%; border-left: .02rem solid # ddd; border-right: 0;} at this point, I believe you have a better understanding of "how to write a field grid list style using CSS3". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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