问答详情
源自:5-5 CSS3背景 制作导航菜单综合练习题

如何让分割线垂直居中?

.nav li:after{

    position:absolute;

         display:inline-block;

         content:'';

         width:3px;

         height:60%;

         ?

         top:0;

         right:0;

         background-image:linear-gradient(to top,#000,#fff)


提问者:为明天流泪 2015-11-11 09:56

个回答

  • vay
    2015-12-16 20:38:10

    .nav li:after{

        position:absolute;

             display:inline-block;

             content:'';

             width:3px;

             height:60%;

             top:20%;

             right:0;

             background-image:linear-gradient(to top,#000,#fff)