html - Html display tables weirdly
问题描述
Since yesterday, i'm having a weird issue with my Flask projects. I'm following a tutorial and it's supposed to look like this: enter image description here
But it looks like this: enter image description here
I've been looking for an answer since yesterday... any advice ?
Here is the code: I have a base.html file:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{%block head%}{%endblock%}
<link rel="stylesheet" href="{{ url_for( 'static', filename='css/main.css')}}"
</head>
<body>
{%block body%} {%endblock%}
</body>
</html>
and a index.html that contains the table:
{%extends 'base.html'%}
{%block head%}
{%endblock%}
{%block body%}
<div class="content">
<h1>Task Master</h1>
<table>
<tr>
<th>Task</th>
<th>Added</th>
<th>Actions</th>
</tr>
<tr>
<td></td>
<td></td>
<td>
<a href="">Delete</a>
<br>
<a href="">Update</a>
</td>
</tr>
</table>
</div>
{%endblock%}
THANKS SO MUCH !
解决方案
推荐阅读
- mysql - MySQL - 返回前 5 名用户的列表,同时包括登录用户
- java - 为什么带有两个'+'的char输出是整数
- python - 无论目录如何导入模块
- r - 汇总具有相同 ID 的多行的分组类别
- c# - 如何访问数组列表中的子索引值
- jquery - JQuery - 克隆选项卡但保持原始隐藏?
- github-actions - GitHub Action 构建矩阵:$ 是如何工作的?
- python - python:执行“ord”以获取字符串列表中每个字符的ascii代码
- flutter - 是否可以在颤动中更改 showGeneralDialog() 的默认动画?
- scala - 在 Scala 中模拟新对象的创建