我正在使用jQuery Dropdown Check List。我想将放置容器的宽度固定为 550px 但无法成功。
我正在使用以下代码:
<script type="text/javascript" src="js/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="js/ui.dropdownchecklist-1.4-min.js"></script>
<link rel="stylesheet" type="text/css" href="css/ui.dropdownchecklist.standalone.css" />
<link rel="stylesheet" type="text/css" href="css/ui.dropdownchecklist.themeroller.css" />
<link href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
$("#mail_to").dropdownchecklist({ icon: {placement:'right'} , maxDropHeight: 550 , width:550 });
</script>
<style type="text/css">
.ui-dropdownchecklist-dropcontainer
{
width: 555px;
}
.ui-widget-content
{
width: 555px;
}
.ui-widget
{
width: 555px;
}
</style>
任何帮助,将不胜感激。