1

我正在为 python 使用 Mako 模板引擎。我想在我的文档中添加 css 样式表,但我不知道该怎么做。有什么帮助吗?

4

2 回答 2

0

包括的 Mako 文档

<%include file="some_css_you_want_to_include.css" />
于 2015-04-12T10:08:02.167 回答
0
<head>
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>

确保 href 指向您的 CSS 文件(并且在正确的目录中)

直接取自W3Schools。Mako 模板没有什么特别之处,它们只是帮助您构建动态 html。

于 2013-08-25T17:09:10.043 回答