开发者

How to create a button that spans the entire width of the page in HTML?

<input 开发者_开发问答type="submit" value="Go!"/>

gives a button like this:

How to create a button that spans the entire width of the page in HTML?

I want the button to span the entire width of the page. How can I do that?


<input type="submit" value="Go!" style="width:100%"/>


Have you tried style="width:100%" ?


I suggest using a hyperlink instead for this and using css to style it something like this

a:hover {
  border:60px;
  border-color:blue;
  padding:30px;
  }

a {
  border:60px;
  padding:30;
  }
<a href="link">link</a>

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜