样式不适用于 gradle 中的 p 标签
style not working for p tag in gradle
嗨,我是 gradle
和 nodejs
的新手。
我正在尝试为 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
相同的样式,它会添加填充。请解释一下 style
在 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>
标签中。
嗨,我是 gradle
和 nodejs
的新手。
我正在尝试为 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
相同的样式,它会添加填充。请解释一下 style
在 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>
标签中。