[英]YUI autocomplete: how to make container width adjust to content
The solution is: 解决方案是:
<div class="yui-skin-sam"><div id="autocomplete"></div></div>
and 和
.yui-skin-sam .yui-ac-content {
width:auto !important;
}
set the container's width according to the input length : 根据输入长度设置容器的宽度:
suppose your input length is 20px: 假设您的输入长度为20px:
.yui-skin-sam .yui-ac-container { width:20px;left:0px;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.