1. 程式人生 > >a 標籤做成btn 樣式

a 標籤做成btn 樣式

a { 
    display: block; 
    height: 25px; 
    width: 150px; 
    text-align: center; 
    background: #F00; 
    color: #ffffff; 
    font-size: 14px; 
    font-weight: bold; 
    text-decoration: none; 
    padding-top: 3px; 
    margin-top:3px;
    border-radius:10px;

}

border-radius 可以改變按鈕弧度

效果 圖