如图
主要是左边的图标是错位的,本来想用ul、li实现的。
现在第一个和最后一个有问题,第一个倒很好解决,但是最后一个怎么实现图标下面没有线?
或者有没有更好的布局方式
大家讲道理2017-04-17 11:48:50
The last one has no line and can be removed using jq’s last-child selector
PHP中文网2017-04-17 11:48:50
That line is simulated using border, and the border of the last element is 0
PHP中文网2017-04-17 11:48:50
is divided into two columns. The vertical line on the left is implemented with absolute positioning. The li tag is used on the right. The line segment can be border. If you use something like border-top:1px solid #aaa;, use li:first -child{border-top:none;}, if using border-bottom, use:last-child