1. Change the two-line border into a single solid line by border-collapse:collapse
table{
width:500px;
border-collapse:collapse;
}
2. Color the first pair of tr child by tr:nth-child(1)
tr:nth-child(1){
background-color:#5B92E6;color:#ffffff;
}
3. Color the even tr by tr:nth-child(even)
tr:nth-child(even){
background-color:#e8e8e8;
}
If you guys find this article helpful, please kindly do the writer a favor — LIKE this article.
Feel free to comment and share your ideas below to learn together!
<<: DAY6 MongoDB 资料新增(Insert) 与删除(Delete)
>>: [Day5]C# 鸡础观念- 让变数学会七十二变的高手~运算子
用容器装非容器的资料(整数、浮点数、布林)是一维的概念,可以想成是数学中的数列,或是前面举例的火车 ...
分散式系统之间不只是 unicast,更多的是有 multicast 的需求, 因此这章将介绍广播。...
回到村子後,山姆变成了斜杠青年,他将探险的故事写成了一本书。 书的封面印着山姆的肖像。 而书名就叫...
今天继续来练习阴影~ 因为要方便练习~ 所以选一个简单的圆形怪物 我就选了瓦斯弹~ 用他来练习阴影 ...
今天开始要介绍 Structural patterns。先前的 Creational pattern...