2

The documentation says - When a select is large enough to where the menu will open in a new page, the placeholder text is displayed in the button when no items are selected, and the label text is displayed in the menu's header. 这与较小的覆盖菜单不同,其中占位符文本同时显示在按钮和标题中,并且与完全不使用占位符文本的全页单选不同。

我在这里看到 2 个选项。1,将我的代码修复到我的标签实际隐藏的位置(我无法弄清楚)。或 2. 使多选框在标题中显示占位符而不是标签。

谢谢你的帮助。

这是我正在使用的代码: <div data-role="fieldcontain" class="ui-hide-label"> <label for="abc" class="ui-hidden-accessible">Select</label> <select name="abc" id="abc" multiple="multiple" data-native-menu="false"> <Option data-placeholder="true">Select Multiple</option> <Option>Option1</option> </select> </div>

4

0 回答 0