...如果是的话,怎么办?我有一个选择元素结合大小属性,即<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"><script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script><select class="form-control" size="5"> <option>Mustard</option> <option>Ketchup</option> <option>Barbecue</option> <option>Ketchup</option> <option>Mustard</option> <option>Ketchup</option> <option>Barbecue</option> <option>Ketchup</option> <option>Mustard</option> <option>Ketchup</option> <option>Barbecue</option> <option>Ketchup</option></select>现在,我想向选项添加更多信息-bootstrap-select可以完成此工作,但是它忽略了select-size-attribute / throws错误:<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.10/css/bootstrap-select.css" rel="stylesheet"/><script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.13.10/js/bootstrap-select.min.js"></script><script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script><link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"><select size="5" class="selectpicker" data-show-subtext="true"> <option data-subtext="Mustard">Mustard</option> <option data-subtext="Ketchup">Ketchup</option> <option data-subtext="Barbecue">Barbecue</option> <option data-subtext="Ketchup">Ketchup</option> <option data-subtext="Mustard">Mustard</option> <option data-subtext="Ketchup">Ketchup</option> <option data-subtext="Barbecue">Barbecue</option> <option data-subtext="Ketchup">Ketchup</option> <option data-subtext="Mustard">Mustard</option> <option data-subtext="Ketchup">Ketchup</option> <option data-subtext="Barbecue">Barbecue</option> <option data-subtext="Ketchup">Ketchup</option></select>
添加回答
举报
0/150
提交
取消