我有一个动画步骤但是在每个步骤下添加一些文本时我遇到了一个主要问题。
问题是:在添加段落
我创建了一个“step-paragraph”类
<ul class="steps">
<li class="step step-incomplete step-active">
<span class="step-icon"></span><span class="span-label">Step 1</span>
<p class="step-paragraph">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
</li>
<li class="step step-incomplete step-inactive">
<span class=" step-icon"></span><span class="span-label">Pass the test</span></li>
<li class="step step-incomplete step-inactive">
<span class=" step-icon"></span><span class="span-label">Start earning</span></li>
</ul>
以下是codepen http://codepen.io/felixyakubov91/pen/pNPoaW
非常感谢任何帮助!
答案 0 :(得分:0)
找到答案
.step-paragraph {text-align:left;margin:10px 5px;
max-width:300px; display:inline-block;}
还有一些:之前,:定位后