Re: [問題] 請問如何在秀出的資料錄上加上不同顏色
※ 引述《fotofolio (...)》之銘言:
: tbody tr:nth-child(even) {background :red }
: tbody tr:nth-child(odd) {background: blue}
: 收工!
這方法看起來好棒!
不過弄了一個簡單的檔案試試卻沒效果囧?
請問我是哪邊出錯了呢?
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<style TYPE="text/css">
tbody tr:nth-child(even) {background :red }
tbody tr:nth-child(odd) {background: blue}
</style>
</head>
<body>
<table border="1">
<tr><td>☀<td>9728
<tr><td>☁<td>9729
<tr><td>☂<td>9730
<tr><td>☃<td>9731
(中略)
</table>
</body>
</html>
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.241.104.166
→
08/21 09:10, , 1F
08/21 09:10, 1F
推
08/21 14:31, , 2F
08/21 14:31, 2F
推
08/23 09:21, , 3F
08/23 09:21, 3F
推
08/24 21:02, , 4F
08/24 21:02, 4F
推
08/27 14:58, , 5F
08/27 14:58, 5F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 5 之 5 篇):