【发布时间】:2023-03-29 04:11:02
【问题描述】:
我正在网络浏览器中运行 python cgi 脚本。一切正常,但是一旦代码完成执行,所有 css 样式都会消失(html 表单仍然出现并且工作正常)。我怎样才能解决这个问题?这是我的代码:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="/css/style.css" type="text/css" charset="utf-8">
<title>Python Index Match</title>
</head>
<body>
<form action="/cgi-bin/form.py">
<tag>Welcome!</tag>
<p class="text">Please browse for your company file: <input type="file" name="file1" value="Browse"> </p>
<span class="btn"></span>
<p class="text">Please browse for your price export file: <input type="file" name="file2" value="Browse"> </p>
<span class="btn"></span>
<p class="text">What company is this file for? <select name="dropdown"> </p>
<option></option>
<option value="...">...</option>
<option value="...">...</option>
</select>
What would you like to name your new file? (With extension) <input type="text" name="result"><br>
<br>
<input type="submit">
</form>
</body>
</html>
【问题讨论】: