制作下拉菜单宽度均匀 [英] making drop down menu width uniform
本文介绍了制作下拉菜单宽度均匀的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的下拉菜单背景占用了项目的大小,因此不相等......可以做些什么来使它们相等?
My dropdown menu background takes size of the items, hence unequal...what can be done to make them equal??
推荐答案
可能有一个数字解决这个问题的方法
1)设置li控件的最小宽度。
2)写一些JQuery来填充每个li到最大长度。
3)使用表格单元格。
例如
There could be a number of ways to solve this problem
1) Set the minwidth of the li control.
2) Write some JQuery to pad each li to the max length.
3) Use a table-cell.
E.g.
li {
display: table-cell;
}
这篇关于制作下拉菜单宽度均匀的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文