运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> table { border-collapse: collapse; border-spacing: 0; width: 100%; border: 1px solid #ddd; } th, td { text-align: center; padding: 16px; } th:first-child, td:first-child { text-align: left; } tr:nth-child(even) { background-color: #f2f2f2 } .fa-check { color: green; } .fa-remove { color: red; } </style> </head> <body> <h2>Comparison Table</h2> <table> <tr> <th style="width:50%">Features</th> <th>Basic</th> <th>Pro</th> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-remove"></i></td> <td><i class="fa fa-check"></i></td> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-check"></i></td> <td><i class="fa fa-check"></i></td> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-check"></i></td> <td><i class="fa fa-check"></i></td> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-remove"></i></td> <td><i class="fa fa-check"></i></td> </tr> <tr> <td>Sample text</td> <td><i class="fa fa-check"></i></td> <td><i class="fa fa-check"></i></td> </tr> </table> </body> </html>