如何将链接从<td>
内部移动到它们周围然后删除第二个链接?我试图让整行可以点击并且点击时产生涟漪效应,但我需要先将每一行作为链接。
<table>
<tr>
<th>Event Date</th>
<th>Event</th>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1552.html'>11/22/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1552.html'>Special Service with Bro. Josiah Wilson</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1553.html'>11/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1553.html'>Special Service with Bro. Greg Wilkins</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1555.html'>11/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1555.html'>Special Service with Elder Vaughn Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1551.html'>11/4/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1551.html'>West Coast Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1554.html'>10/25/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1554.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1541.html'>8/28/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1541.html'>All Night Family Lock‐In</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1499.html'>8/2/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1499.html'>Special Service with Bro. Jacob Hernandez</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1482.html'>7/26/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1482.html'>Donkey Rock Junior Camp</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1481.html'>7/12/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1481.html'>Donkey Rock Teen Camp</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1476.html'>7/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1476.html'>Special Service with Bro. Justin Prather</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1475.html'>7/4/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1475.html'>Independence Day</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1474.html'>6/26/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1474.html'>Freedom Fest</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1473.html'>6/21/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1473.html'>Homeschooler's Graduation Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1471.html'>6/14/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1471.html'>Pacific Coast Camp (Ventura, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1472.html'>6/10/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1472.html'>Special Service with Bro. Nathan Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1442.html'>5/23/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1442.html'>Church Coastal Trip</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1449.html'>5/17/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1449.html'>Special Service with Elder Ray Claborn</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1437.html'>5/10/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1437.html'>Mother's Day</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1438.html'>5/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1438.html'>Mother's Day Dinner</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1330.html'>4/24/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1330.html'>Youth Fellowship Meeting</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1418.html'>4/15/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1418.html'>Pastor Marchbanks' Birthday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1417.html'>4/11/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1417.html'>Family Day at Lake Success</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1416.html'>4/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1416.html'>Easter Sunday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1415.html'>3/28/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1415.html'>Kids Fest</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1414.html'>3/25/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1414.html'>Four Year Pastoral Anniversary Presentation</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1326.html'>3/11/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1326.html'>OnCourse Youth Conference (Merced, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1325.html'>3/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1325.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1324.html'>3/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1324.html'>Missions Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1321.html'>12/21/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1321.html'>Sunday School Christmas Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1322.html'>12/21/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1322.html'>Christmas Offering Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1320.html'>12/19/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1320.html'>Christmas Cookie Exchange</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1291.html'>12/17/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1291.html'>Christmas Banquet</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1421.html'>12/14/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1421.html'>Special Service with Elder Vaughn Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1323.html'>12/4/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1323.html'>Christmas Parade</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1272.html'>11/11/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1272.html'>Special Service with the Tim Chandler Family</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1319.html'>11/9/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1319.html'>Special Service with Bro. Tom Bracken</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1254.html'>11/5/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1254.html'>West Coast Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1253.html'>11/2/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1253.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1420.html'>10/26/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1420.html'>Special Service with Bro. Rick Bray</a></td>
</tr>
</table>
<table>
<tr>
<th>Event Date</th>
<th>Event</th>
</tr>
<tr>
<a href='../page.php%3FTYPE=EVENT&ID=1552.html'>
<td>11/22/2015</td>
<td>Special Service with Bro. Josiah Wilson</td>
</a>
</tr>
</table>
答案 0 :(得分:0)
我会给它一个display: block
和一些CSS:
* {margin: 0; padding: 0; border-collapse: collapse;}
table {border: 1px solid #ccc;}
a {display: block; padding: 5px;}
tr {background: #eef;}
tr:nth-child(even) {background: #edf;}
&#13;
<table>
<tr>
<th>Event Date</th>
<th>Event</th>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1552.html'>11/22/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1552.html'>Special Service with Bro. Josiah Wilson</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1553.html'>11/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1553.html'>Special Service with Bro. Greg Wilkins</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1555.html'>11/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1555.html'>Special Service with Elder Vaughn Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1551.html'>11/4/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1551.html'>West Coast Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1554.html'>10/25/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1554.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1541.html'>8/28/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1541.html'>All Night Family Lock‐In</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1499.html'>8/2/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1499.html'>Special Service with Bro. Jacob Hernandez</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1482.html'>7/26/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1482.html'>Donkey Rock Junior Camp</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1481.html'>7/12/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1481.html'>Donkey Rock Teen Camp</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1476.html'>7/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1476.html'>Special Service with Bro. Justin Prather</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1475.html'>7/4/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1475.html'>Independence Day</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1474.html'>6/26/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1474.html'>Freedom Fest</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1473.html'>6/21/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1473.html'>Homeschooler's Graduation Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1471.html'>6/14/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1471.html'>Pacific Coast Camp (Ventura, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1472.html'>6/10/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1472.html'>Special Service with Bro. Nathan Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1442.html'>5/23/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1442.html'>Church Coastal Trip</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1449.html'>5/17/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1449.html'>Special Service with Elder Ray Claborn</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1437.html'>5/10/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1437.html'>Mother's Day</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1438.html'>5/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1438.html'>Mother's Day Dinner</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1330.html'>4/24/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1330.html'>Youth Fellowship Meeting</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1418.html'>4/15/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1418.html'>Pastor Marchbanks' Birthday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1417.html'>4/11/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1417.html'>Family Day at Lake Success</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1416.html'>4/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1416.html'>Easter Sunday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1415.html'>3/28/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1415.html'>Kids Fest</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1414.html'>3/25/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1414.html'>Four Year Pastoral Anniversary Presentation</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1326.html'>3/11/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1326.html'>OnCourse Youth Conference (Merced, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1325.html'>3/8/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1325.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1324.html'>3/5/2015</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1324.html'>Missions Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1321.html'>12/21/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1321.html'>Sunday School Christmas Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1322.html'>12/21/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1322.html'>Christmas Offering Service</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1320.html'>12/19/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1320.html'>Christmas Cookie Exchange</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1291.html'>12/17/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1291.html'>Christmas Banquet</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1421.html'>12/14/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1421.html'>Special Service with Elder Vaughn Morton</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1323.html'>12/4/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1323.html'>Christmas Parade</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1272.html'>11/11/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1272.html'>Special Service with the Tim Chandler Family</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1319.html'>11/9/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1319.html'>Special Service with Bro. Tom Bracken</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1254.html'>11/5/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1254.html'>West Coast Conference (Fresno, CA)</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1253.html'>11/2/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1253.html'>Sunday Funday</a></td>
</tr>
<tr>
<td><a href='../page.php%3FTYPE=EVENT&ID=1420.html'>10/26/2014</a></td>
<td><a href='../page.php%3FTYPE=EVENT&ID=1420.html'>Special Service with Bro. Rick Bray</a></td>
</tr>
</table>
&#13;