开发者

can an html input be put inside a text area

开发者 https://www.devze.com 2022-12-22 00:21 出处:网络
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?:

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

精彩评论

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

关注公众号