当您将鼠标悬停在它上面时,li元素会向右滑动。我该如何更改它,以便它可以从右向左移动?我还希望项目符号出现在右侧。我已经尝试过更改项目符号的位置和将padding-left更改为padding-right,但它就是不起作用。有人可以帮我吗?
.cmsms_timeline {
position:relative;
margin:-11px 0 0 0;
padding:0 0 37px 29px;
list-style:none;
}
.cmsms_timeline li {
position:relative;
padding-top:24px;
}
.cmsms_timeline li:before,
.cmsms_timeline:before {
position:absolute;
top:-2px;
left:0;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
width:1px;
height:28px;
background:rgba(0, 0, 0, .08);
content:'';
}
.cmsms_timeline:before {
top:auto;
bottom:11px;
left:29px;
}
.cmsms_timeline li a {
position:relative;
padding-left:13px;
-webkit-transition:all .3s ease-in-out;
-moz-transition:all .3s ease-in-out;
-ms-transition:all .3s ease-in-out;
-o-transition:all .3s ease-in-out;
transition:all .3s ease-in-out;
}
.cmsms_timeline li a:hover {padding-left:19px;}
.cmsms_timeline li a:before {
position:absolute;
top:5px;
left:-2px;
width:5px;
height:5px;
-webkit-border-radius:50%;
-moz-border-radius:50%;
border-radius:50%;
background:rgba(0, 0, 0, .2);
content:'';
-webkit-transition:background .3s ease-in-out;
-moz-transition:background .3s ease-in-out;
-ms-transition:background .3s ease-in-out;
-o-transition:background .3s ease-in-out;
transition:background .3s ease-in-out;
}
<ul class="cmsms_timeline">
<li><a>hello world</a></li>
</ul>