html - 这种错位的时间轴怎么布局,然后用css实现?
伊谢尔伦
伊谢尔伦 2017-04-17 11:46:50
0
5
446

如图

主要是左边的图标是错位的,本来想用ul、li实现的。
现在第一个和最后一个有问题,第一个倒很好解决,但是最后一个怎么实现图标下面没有线?
或者有没有更好的布局方式

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(5)
大家讲道理

The last one has no line and can be removed using jq’s last-child selector

PHPzhong

You can write it directly using inline styles

洪涛

That line is simulated using border, and the border of the last element is 0

小葫芦

Remove style last-child selector

洪涛

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template