我在表格单元格内使用多选下拉列表。 但是,当我单击它时,选项隐藏在其下方单元格内容的后面。
我做错了什么?
$('#example-getting-started').multiselect({
buttonWidth: '700px',
maxHeight: 200,
buttonText: function(options, select) {
var labels = [];
options.each(function() {
if ($(this).attr('label') !== undefined) {
labels.push($(this).attr('label'));
} else {
labels.push($(this).html());
}
});
return labels.join(', ') + '';
}
});
<div id="attachedInfoOpts">
<select id="example-getting-started" multiple="multiple">
<option value="Breating Exercises" selected="selected">Breating Exercises</option>
<option value="Prescription">Prescription</option>
<option value="Health Dieting Information" selected="selected">Healthy Dieting Information</option>
<option value="Health Dieting Information" selected="selected">Healthy Dieting Information</option>
</select>
</div>
最佳答案
添加
Overflow: visible;
到周围的Container。
关于javascript - 多选选项隐藏在其下方的 div 后面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31735544/