作者:平凡2188 | 来源:互联网 | 2023-05-18 12:33
ItsworkingperfectinCromebutinfirefoxsecond-lastlistitemcountryname8isnotvisible,y
Its working perfect in Crome but in firefox second-last list item 'country name 8' is not visible, you can see it through firebug.
它在Crome中工作得很好,但是在firefox的最后一个列表项“国家名称8”不可见,您可以通过firebug查看它。
conditions:-
条件:-
- Cant use div or another tag for last list item it has to be in li.
- 不能使用div或另一个标签为最后的列表项它必须是在li。
- It has to display inside the scroll not outside.
- 它必须显示在滚动条里面而不是在外面。
only two conditions. if its possible through jquery we can do that, Thanks in advance :)
只有两个条件。如果可能的话,我们可以通过jquery来实现,提前感谢:)
.searchlist{
position: relative;
margin-top:50px;
}
ul{ display: block;
max-height: 110px;
overflow-y: auto;
padding:0px 0px 38px 0px;
margin:0px;
width: 223px;
}
li{padding: 8px 10px;
display: block;
font-size: 13px;
cursor: pointer;
background: #35404d;
}
li.fix{border-top: 1px solid #50575f;
position: absolute;
top: 115px;
width: 185px;}
- country name 1
- country name 2
- country name 3
- country name 4
- country name 5
- country name 6
- country name 7
- country name 8
- country name 9
1 个解决方案