0

我的网页上有一个按钮。

<button id="button" type="button">Show</button>

我希望我的按钮是蓝色的,如果可能的话有圆角。我怎样才能做到这一点??我对造型真的很陌生。

4

2 回答 2

1

更正了您的标记

 <button class="button">SHOW</button> /*..you were missing the >   ...*/

和CSS

 .button{
background-color:blue;
border-radius:10px;
}

例子

于 2013-08-31T14:20:05.457 回答
0

Try this CSS:

#button {
    background: blue;
    border-radius: 35px;
    border: none;
}

Fiddle: http://jsfiddle.net/qLZKs/

于 2013-08-31T14:13:33.897 回答