我使用它来设置表格的顶行(标题)的样式,但是如何为最后一行做同样的事情呢?
更新:我在桌面上使用AngularJS ng-repeat,而中间行仅使用最后一行的样式。
th:first-child {
border-top-left-radius: 15px;
}
th:last-child {
border-top-right-radius: 15px;
}
答案 0 :(得分:5)
这是你想要的吗?
SELECT consCols.table_name, consCols.column_name
FROM all_cons_columns consCols INNER JOIN
all_constraints cons
ON cons.constraint_name = consCols.constraint_name INNER JOIN
all_tab_columns cols
ON consCols.table_name = cols.table_name AND consCols.column_name = cols.column_name
WHERE cons.constraint_type = 'P' AND
cons.owner = 'MY_OWNER' AND
cols.data_type = 'NUMBER' AND
NOT EXISTS (SELECT 1
FROM all_cons_columns acc
WHERE acc.constraint_name = consCols.constraint_name AND
acc.table_name = consCols.table_name AND
acc.column_name <> consCols.column_name
);
答案 1 :(得分:1)
th,td {
width: 100px;
height: 100px;
border: 1px solid red;
}
th:first-child {
border-top-left-radius: 15px;
}
th:last-child {
border-top-right-radius: 15px;
}
tr:last-child td:first-child {
border-bottom-left-radius: 15px;
}
tr:last-child td:last-child {
border-bottom-right-radius: 15px;
}
<table>
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
答案 2 :(得分:0)
这样的东西?
cross_val_score(clf, X, y, scoring = 'precision')
答案 3 :(得分:0)
假设您table
的{{1}}为id
。
foo
确保表格末尾没有隐藏的#foo tr:last td:first-child {
border-top-left-radius: 15px;
}
#foo tr:last td:last-child {
border-top-right-radius: 15px;
}
。