开发者

can an html input be put inside a text area

For example I have limited space and I want the submit button to appear in the bottom right of the text area. So开发者_JS百科mething like this?:

<textarea value='text message' name='messageSMS' id='messageSMS' onfocus='clearInput(this)' onblur='clearInput(this)'>
<input value='send' id='sendSMS' type='submit' name='submit' />
</textarea>


No.

Instead, you could use CSS to move it over the textbox.

For example: (Tested in Firefox on Windows 7; DEMO)

#sendSMS{
    width: 40px;
    position: relative;
    left:-47px;
    top: -7px;
}

You might want to make the button cover the entire height of the textbox.


You can use CSS positioning.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜