HTML中圓角樣式

<!DOCTYPE html>
<html>
  <head>
    <title>index.html</title>
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    <style type="text/css">
        .cos{
            border-radius:5px;
            padding: 2px;
            width: 120px;
            height:35px;
            line-height: 35px;
        }
        .color_g{
            background-color: gray;
        }

        .color_w{
            border-radius:5px;
            background-color:white;
        }
    </style>
  </head>
  <body>
    <div class="cos color_g">
        <div class="color_w">eee</div>
    </div>
  </body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章