Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to write field grid list style with CSS3

Shulou Source: shulou.com Published: 2022-05-31 12:38:47 10月23日 Update

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!

Tags: Style field grid content learning practical deeper location interest practicality simplicity method more friends website channel Tokyo Taiwan Singapore Bangkok Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Information macOS Redmi Apple