2011-07-28 43 views
1

我需要將光標對齊到左側。出於某種原因,其在頁面上呈現時縮進:由於某種原因縮進的HTML textarea curson

   <td> 
     You have <strong><span id="commentsCounter">${const['COMMENT_MAX_LENGTH'] - fn:length(commentForm.comment)}</span></strong> characters left.<br/> 
      <textarea id="comment" name="comment" rows="2" cols="125" style="width:395px;" 
       onkeypress="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)" 
       onkeydown="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)" 
       onkeyup="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)"> 
       </textarea> 

        <a href="javascript:addComment();"><img src="../images/icon_add.gif" border="0" alt="Add"/></a> 
     </td> 
    </tr> 

enter image description here

thanx的幫助

+0

我找到了....我之前有空白 –

回答

8

試試這個:

<textarea id="comment" name="comment" rows="2" cols="125" style="width:395px;" onkeypress="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)" onkeydown="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)" onkeyup="characterCounter('commentsCounter',${const['COMMENT_MAX_LENGTH']}, this)"></textarea> 

您的交易</textarea>標籤應始終在同樣的線路來避免這樣的問題。

+0

沒錯!......那就是問題..對於即時回覆 –

相關問題