【问题标题】:longer text in a selectBoxIt drop-down list is not visible (if chosen)selectBoxIt 下拉列表中的较长文本不可见(如果选择)
【发布时间】:2017-09-18 06:52:00
【问题描述】:

我有一个使用 selectBoxIt 的下拉列表。如果选项长于下拉菜单的宽度,选择后文本将消失。我在互联网上找不到解决方案。

以下2张图片显示问题:

如果文本比菜单的宽度短,一切都很好

如果文本较长,菜单显示为空

这是我如何初始化 selectBoxIt

    $(function() {
        var selectBox = $("select").selectBoxIt({ autoWidth: false });
    });

我的 selectBoxIt 有 v3.8.1 版本

【问题讨论】:

    标签: css twitter-bootstrap html-select selectboxit


    【解决方案1】:

    看看这些链接:

    https://jsfiddle.net/ZTs42/2/

    $(function(){
    
                $("#testselectset").selectBoxIt({
                    theme: "default",
                    defaultText: "Make a selection...",
                    autoWidth: false
                });
                $("#testselectset").change(function(){
                    alert("You selected: "+this.value+" from the Selectboxit plugin");
                });
    
            });
    

    https://github.com/gfranko/jquery.selectBoxIt.js/issues/129

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多