加载页面

时间:2016-03-15 21:26:31

标签: jquery html css razor textarea

我的页面上有一个textarea,当我加载页面时,我想要显示textarea中的所有文本,而不必按下箭头或回车键将光标向下移动到文本的末尾。在页面呈现时,我是否可以提供某种css来适当调整textarea的大小?

当我在这里加载页面时,就是我所看到的。

enter image description here

这是我想看到的。

enter image description here

这是我的剃刀代码和渲染的html



@Html.TextAreaFor(model => model.SelfSummary, new { @id = "profileCatchPhrase", @class = "form-control catchPhraseHideDontTakeUpSpace input-lg", @style = "min-height: 64px; max-height: 460px; margin-top: 10px; max-width: 500px;" })





<textarea name="SelfSummary" class="form-control input-lg valid" id="profileCatchPhrase" aria-invalid="false" aria-describedby="profileCatchPhrase-error" style="height: 188px; margin-top: 10px; min-height: 64px; max-height: 460px; max-width: 500px;" rows="2" cols="20" data-val="true" data-val-maxlength-max="1000" data-val-maxlength="Max length is 1000">test summary!
test summary 1!
test summary 2!
test summary 3 with lots of stuff #(*@#@()*! 
testing to the end if the line alskdjasdkj(*&amp;(#*&amp;$Q#)(*as;dasdkl
what now!</textarea>
&#13;
&#13;
&#13;

0 个答案:

没有答案