gpt4 book ai didi

node.js - 样式不适用于 gradle 中的 p 标签

转载 作者:太空宇宙 更新时间:2023-11-03 22:15:36 25 4
gpt4 key购买 nike

您好,我是 gradlenodejs 的新手。我正在尝试为 jade 中的 p 标签添加填充。我的 Jade 文件如下

extends layout

block content
center
h1= title
p Rate-Review-Ride
p(style='padding-left:500px;')
| Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language
| (DSL) instead of the more traditional XML form of declaring the project configuration.
| Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
| Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
| The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
| dfs dfd fdsfdf dfljjf ofds fojdofjdosj fojdofjdofjdof

但它没有向段落添加填充。如果我在上面的代码中添加 center ,它会添加填充,效果相同。请解释一下 stylejade 中的工作原理

最佳答案

Jade就像 python 一样,对行缩进非常严格。你需要把 |右侧两个空格,如下所示:

block content
center
h1= title
p Rate-Review-Ride
p(style='padding-left:500px;')
| Gradle is a project automation tool that builds upon the concepts of Apache Ant and Apache Maven and introduces a Groovy-based domain-specific language
| (DSL) instead of the more traditional XML form of declaring the project configuration.
| Unlike Apache Maven, which defines lifecycles, and Apache Ant, where targets are invoked based upon a depends-on partial ordering, Gradle uses a directed acyclic graph ("DAG") to determine the order in which tasks can be run.
| Gradle was designed for multi-project builds which can grow to be quite large, and supports incremental builds by intelligently determining which parts of the build tree are up-to-date, so that any task dependent upon those parts will not need to be re-executed.
| The initial plugins are primarily focused around Java, Groovy and Scala development and deployment, but more languages and project workflows are on the roadmap.
| dfs dfd fdsfdf dfljjf ofds fojdofjdosj fojdofjdofjdof

没有它,文本将不会出现在 <p> 中标签。

关于node.js - 样式不适用于 gradle 中的 p 标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29967221/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com