简体   繁体   English

步骤进度条在移动设备中是水平的

[英]Step progress bar to be horizontal in mobile

I am trying to implement step progress bar and I have done the below for desktop version.我正在尝试实现步骤进度条,并且我已经为桌面版本完成了以下操作。

I want the step progress bar to be horizontal like我希望步骤进度条是水平的这个

I am adding the working fiddle here - https://jsfiddle.net/Durairaj1696/k1cdmhsj/1/我在这里添加工作小提琴 - https://jsfiddle.net/Durairaj1696/k1cdmhsj/1/

My code is:我的代码是:

<ul class="StepProgress" style="float:left;">
    <li data-target="#myCarousel" data-slide-to="0" class="StepProgress-item active">
                                   </li>
    <li data-target="#myCarousel" data-slide-to="1" class="StepProgress-item">
         </li>
    <li data-target="#myCarousel" data-slide-to="2" class="StepProgress-item">
    </li>
    <li data-target="#myCarousel" data-slide-to="3" class="StepProgress-item">
      </li>
</ul>

Thanks in advance!提前致谢!

If you want horizontal li then make changes like below in your css如果你想要水平 li 然后在 css 中进行如下更改

.StepProgress-item {
    position: relative;
    display: inline-block; //add display inline block 
    margin-left : 20px; // margin from left
    counter-increment: list;
    font-family: Hellix-SemiBold;
    font-size: 18px;
    letter-spacing: 0;
    line-height: 48px;
    padding-left: 15px;

 }

Hope this will help.if you get any problem then let me know.希望这会有所帮助。如果您遇到任何问题,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM