表格隔行变色 Label固定宽度 fieldset样式
表格隔行变色
1 .news_table tr:nth-child(2n){ 2 background-color: #F1F9FC; 3 } 4 .news_table tr{ 5 background-color: expression_r((this.sectionRowIndex % 2 == 0) ? "#F1F9FC" : "#fff" ); 6 } 7 .news_table tr:hover { background-color:#fff7d2; 8 }
DIV中 Label Input 对齐
1 label { 2 display:-moz-inline-box; 3 display:inline-block; 4 width:80px; 5 }
fieldset样式
1 fieldset { 2 margin:10px 0 10px 10px; 3 width:98%; 4 color:#333; 5 border:#06c dashed 1px; 6 text-align:left; 7 padding:5px 0 5px 5px; 8 } 9 legend { 10 color:#06c; 11 font-weight:800; 12 background:#fff; 13 }
效果图如下: