问答详情
源自:1-4 使用radio制作导航(添加样式)

单选框位置提,只显示一个?

为什么只显示第五个?

http://img.mukewang.com/585b53aa0001e00814400871.jpg

body{

font-weight:400;

overflow:hidden;

font-smoothing:antialiased;

}

a{

text-decoration:none;

}

.clr{

width:0;

height:0;

overflow:hidden;

clear:both;

padding:0;

margin:0;

}

.st-container{

width:100%;

height:100%;

position:absolute;

left:0;

top:0;

}

.st-container >input,

.st-container>a{

width:20%;

height:24px;

line-height:24px;

position:fixed;

bottom:0;

}


.st-container>input{

opacity:0;

z-index:1000;

}

.st-container>a{

z-index:10;

font-weight:700;

font-size:16px;

text-align:center;

color:#fff;

background:pink;

text-shadow:1px 1px 1px rgba(125,25,65,0.23);

}


#st-control-1,st-control-1 + a{

left:0%;

}


#st-control-2,st-control-2 + a{

left:20%;

}


#st-control-3,st-control-3+a{

left:40%;

}

#st-control-4,st-control-4+a{

left:60%;

}

#st-control-5,st-control-5+a{

left:80%;

}


提问者:心语忘心 2016-12-22 12:17

个回答

  • 慕粉2133123235
    2016-12-31 23:04:41
    已采纳

    #st-control-1,st-control-1 + a{  改成#st-control-1,#st-control-1 + a{

    试试