CSS How to place a submit button on a new line?

2019-06-16 07:15发布

How can I place an input type=submit on a new line following a text area element?

without using a br tag or a div, ideally I like to do it using css.

2条回答
倾城 Initia
2楼-- · 2019-06-16 07:55

You can display it as a block-level element with display:block. With CSS 2 you can use this rule:

input[type=submit] {
    display: block
}
查看更多
Lonely孤独者°
3楼-- · 2019-06-16 07:57
<textarea></textarea><input type="submit" class="submitbutton">


.submitbutton{
  display:block;
}
查看更多
登录 后发表回答