1

我在 CSS 文件中有这样的 textareaBox 和 textarea 定义:

.textareaBox {
   border: 1px solid #e5e5e5;
   width: 371px;
   height: 73px;
   float: right;
   padding: 5px 10px;
}
.textareaBox textarea {
   width: 370px;
   height: 67px;
   line-height: 18px;
   outline: none;
   border: none;
   font-size: 12px;
   color: #888888;
   font-family: "Segoe UI Light", segoeuil;

}

在我放置的 ASPX 页面上

<asp:Content ID=....>
<link type="text/css" href="~/stylesheets/jquery-ui-1.9.0.custom.css" rel="Stylesheet"/>
<script type="text/javascript" src="~/Scripts/jquery-ui-1.9.0.custom.min.js"></script>
<script type="text/javascript" src="~/Scripts/jquery-ui-1.9.0.custom.js"></script>
<script type="text/javascript">
    $(function () {
        $(".textareaBox").resizable();
    });
</script>

但是 textareaBox 不会改变它的大小。并且它里面的textarea总是当它变得比textareaBox外面的textareaBox大时。

<div class="textareaBox">
 <textarea ... rows="10" cols="10" class="textarea jq_black"></textarea>
</div>

问题出在哪里?

4

1 回答 1

1

您是否在“样式表/jquery-ui-1.9.0.custom.css”样式表中的某处引用“调整大小”图像?如果没有,请添加对此样式表的引用。

<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
于 2012-10-22T13:55:11.660 回答