本文主要是介绍实现每栏中间穿插一个低于外部盒子高度的分割线,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
效果:
<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Document</title><style>.orderInfo {margin: 0 0 20px 0;background: #f8f8f9;display: flex;border: 1px solid #d3d6db;width: 100%;padding: 10px;padding: 10px;justify-content: space-around;}.orderInfo>ul:last-child {flex: 1;position: relative;/* border-right: 1px solid #8a8a8a; */}.orderInfo>ul:last-child::before {content: '';width: 0px;height: 70%;background: #d3d6db;position: absolute;right: 0;top: 35px;}ul {flex: 1;position: relative;}ul::before {content: '';width: 3px;height: 70%;background: #508aff;position: absolute;right: 0;top: 10px;}</style></head><body><div><div class="orderInfo"><ul><li>1</li><li>2</li><li>2</li><li>2</li><li>2</li></ul><ul><li>3</li><li>2</li><li>2</li><li>2</li><li>4</li></ul><ul><li>5</li><li>6</li></ul></div></div></body></html>
这篇关于实现每栏中间穿插一个低于外部盒子高度的分割线的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!