答案 0 :(得分:0)
以下是您的起点:
<body>
<div id='stepContainer'>
<div class='step'>step 1</div>
<div class='step'>step 2</div>
<div class='step'>step 3</div>
<div class='step'>step 4</div>
</div>
</body>
用
打造它<style>
#stepContainer {
width: 300px;
position: absolute;
right: 0;
top: 0;
background-color: white;
}
.step {
width: 100%;
height: 20px;
border-bottom: 12px solid rgba(0,0,0,0.5);
}
.step:nth-child(1) { height :100px; background-color: blue; margin-left: 20px;}
.step:nth-child(2) { height :100px; background-color: green; margin-left: 40px;}
.step:nth-child(3) { height :100px; background-color: aqua; margin-left: 50px;}
.step:nth-child(4) { height :100px; background-color: red; margin-left: 60px;}
</style>