【发布时间】:2015-07-16 15:58:02
【问题描述】:
我正在尝试创建一个列表项并在它们之间添加分隔符我尝试了所有方法,但问题仍然存在。这是我希望我的列表菜单看起来像的图像:-
我使用的 css 和 html 代码是这样的:-
HTML :-
<p class="Categories">Categories</p>
<div class="Rectangle"></div>
<div class="Categories_Box box1 box2">
<ul>
<li><a href="#" class="">Today</a></li>
<div class="line1"></div>
<li><a href="#" class="yest">Yesterday</a></li>
<li><a href="#" class="this_week">This Week</a></li>
<li><a href="#" class="last_week">Last Week</a></li>
<li><a href="#" class="last_month">Last Month</a></li>
</ul>
</div>
CSS :-
.Categories {
font-size: 29px;
font-family: "Exo";
color: rgb(237, 106, 61);
font-weight: bold;
line-height: 0.869;
position: absolute;
left: 227.937px;
top: 215px;
z-index: 31;
}
.Rectangle {
background-color: rgb(107, 107, 107);
position: absolute;
left: 231px;
top: 281px;
width: 194px;
height: 5px;
z-index: 29;
}
.Categories_Box ul{
position:absolute;
left: 0px;
top: 0px;
width: 1366px;
height: 768px;
z-index: 43;
list-style:none;
}
.yest, .this_week, .last_week, .last_month {
font-size: 21px;
font-family: "Exo";
text-decoration:none;
color: rgb(107, 107, 107);
font-weight: bold;
line-height: 0.86;
-moz-transform: matrix( 0.76907888849934,0,0,0.58955579248353,0,0);
-webkit-transform: matrix( 0.76907888849934,0,0,0.58955579248353,0,0);
-ms-transform: matrix( 0.76907888849934,0,0,0.58955579248353,0,0);
position:relative;
left: -175px;
top: -641.112px;
z-index: 30;
}
.line1 {
font-size: 10px;
font-family: "Arial";
color: rgb(221, 221, 221);
line-height: 4.2;
position: absolute;
left: 345.85px;
top: 684.418px;
z-index: 100;
}
.box2 {
border-style: solid;
border-width: 1px;
border-color: rgb(217, 217, 217);
border-radius: 5px;
background-color: rgb(242, 242, 242);
box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.36);
position: absolute;
left: 219px;
top: 229px;
width: 228px;
height: 498px;
z-index: 27;
}
.box1 {
border-radius: 5px;
background-color: rgb(255, 255, 255);
position: absolute;
left: 221px;
top: 230px;
width: 225px;
height: 498px;
z-index: 28;
}
编辑此代码后,我的前 20 个列表消失了,我什至看不到菜单项。 请帮帮我
【问题讨论】: