...如果是的話,怎么辦?我有一個(gè)選擇元素結(jié)合大小屬性,即<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>現(xiàn)在,我想向選項(xiàng)添加更多信息-bootstrap-select可以完成此工作,但是它忽略了select-size-attribute / throws錯(cuò)誤:<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>
是否可以將select-size-attribute與bootstrap-select結(jié)合使用?
慕妹3242003
2021-04-30 14:21:45