登陸: http://glowing-fire-495.heroku.com/newpost導軌:text_area大小
電子郵件:[email protected] PW:密碼
,或者你可以創建自己的帳戶。
我正在使用wmd作爲內容的富文本編輯器。
但是,我不知道如何控制文本區框的大小。
現在它的代碼是:
<div class = "field">
<%= f.label :content%><br/>
<%= f.text_area :content, :cols =>30, :rows => 100%> </div>
爲什麼不使用jQuery並像SO一樣操作:http://plugins.jquery.com/project/TextAreaResizer – Zabba 2011-01-22 12:05:22