markitup 更改文本区域的显式设置大小?
我将几个不同大小的文本区域设置为:
<textarea class="markItUp" rows="5" cols="80" name="upstring">
或
<textarea class="markItUp" rows="100" cols="80" name="upstring">
但是在应用标记后,它们总是调整为 18 行。为什么?
我已经用 firebug 检查了行,它没有变化(仍然是 5 或 100),所以改变它不会有帮助。
由于我有很多文本,我想做一些小的编辑,所以我不知道要从太小或太大的区域开始,因为我已经知道合适的大小。
请帮忙
I set up several textarea's with diffrent sizes as:
<textarea class="markItUp" rows="5" cols="80" name="upstring">
or
<textarea class="markItUp" rows="100" cols="80" name="upstring">
But after the markitup has been applied they are always resized to 18 rows. Why?
I have checked rows with firebug and its unchanged (still 5 or 100) so changing that wont help.
Since I have lots of texts I want to do small edits to I do not what to have a to small or to big area to start with since I already know the appropriate size.
Pleas help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
经过一番尝试来理解事情后,我生成了以下代码来解决我的问题:
After some playing around to understand things I produced the following code to solve my problem:
CSS 规则通常会覆盖 rows 和 cols 属性,因此不要依赖这些属性,而是尝试使用 css 'height' 和 'width' 调整文本区域的大小。
CSS rules generally override the rows and cols attributes, so rather than rely on those, try sizing your textareas with css 'height' and 'width.'