如何将内联 CSS 写入 web2py 视图

How to write inline CSS to web2py view

我的 web2py 项目有一个 html 文件只包含这两行代码

{{extend 'layout.html'}}
{{=form}}

我想写一些内联 css 来覆盖将从 layout.html 加载的 css。我想知道这是否可行,如果可行,那么如何?

这是我要添加的样式

.error {
    margin-top: 0px
}

以下是添加内联的方法 CSS:

{{extend 'layout.html'}}
{{=form}}
<style>
.error {
    margin-top: 0px;
}
</style>