table的HTML5+css3的可用樣式

來源:互聯網
上載者:User

標籤:html5+   css3   

table {  *border-collapse: collapse; /* IE7 and lower */  border-spacing: 0;  width: 100%;  }  .bordered {  border: solid #ccc 1px;  -moz-border-radius: 6px;  -webkit-border-radius: 6px;  border-radius: 6px;  -webkit-box-shadow: 0 1px 1px #ccc;  -moz-box-shadow: 0 1px 1px #ccc;  box-shadow: 0 1px 1px #ccc;  }    .bordered tr:hover {  background: #fbf8e9;  -o-transition: all 0.1s ease-in-out;  -webkit-transition: all 0.1s ease-in-out;  -moz-transition: all 0.1s ease-in-out;  -ms-transition: all 0.1s ease-in-out;  transition: all 0.1s ease-in-out;  }    .bordered td, .bordered th {  border-left: 1px solid #ccc;  border-top: 1px solid #ccc;  padding:3px;/*供修改*/text-align: center;/*供修改*/  }    .bordered th {  background-color: #dce9f9;  background-image: -webkit-gradient(linear, left top, left bottom, from(#ebf3fc), to(#dce9f9));  background-image: -webkit-linear-gradient(top, #ebf3fc, #dce9f9);  background-image: -moz-linear-gradient(top, #ebf3fc, #dce9f9);  background-image: -ms-linear-gradient(top, #ebf3fc, #dce9f9);  background-image: -o-linear-gradient(top, #ebf3fc, #dce9f9);  background-image: linear-gradient(top, #ebf3fc, #dce9f9);  -webkit-box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  -moz-box-shadow:0 1px 0 rgba(255,255,255,.8) inset;  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;  border-top: none;  text-shadow: 0 1px 0 rgba(255,255,255,.5);  }    .bordered td:first-child, .bordered th:first-child {  border-left: none;  }    .bordered th:first-child {  -moz-border-radius: 6px 0 0 0;  -webkit-border-radius: 6px 0 0 0;  border-radius: 6px 0 0 0;  }    .bordered th:last-child {  -moz-border-radius: 0 6px 0 0;  -webkit-border-radius: 0 6px 0 0;  border-radius: 0 6px 0 0;  }    .bordered th:only-child{  -moz-border-radius: 6px 6px 0 0;  -webkit-border-radius: 6px 6px 0 0;  border-radius: 6px 6px 0 0;  }    .bordered tr:last-child td:first-child {  -moz-border-radius: 0 0 0 6px;  -webkit-border-radius: 0 0 0 6px;  border-radius: 0 0 0 6px;  }    .bordered tr:last-child td:last-child {  -moz-border-radius: 0 0 6px 0;  -webkit-border-radius: 0 0 6px 0;  border-radius: 0 0 6px 0;  }  <table class="bordered"><thead><tr><th>編號(ID)</th><th>帳號(USERNAME)</th><th>建立時間(CREATETIME)</th><th>最近登入時間(LASTLOGINTIME)</th><th>管理操作(OPERATION)</th></tr></thead><tbody><tr><td>1</td><td>15150665505</td><td>2014-12-12 12:12:12</td><td>2015-01-01 12:12:12</td><td><input type="button" value="修改"><input type="button" value="啟動"><input type="button" value="刪除"></td></tr></tbody><tfoot><tr><td colspan="5">親愛的BOSS,您目前已有下一級管理員1位哦!</td></tr></tfoot></table>

table的HTML5+css3的可用樣式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.