首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >不适用于p标记的样式

不适用于p标记的样式
EN

Stack Overflow用户
提问于 2015-04-30 12:00:16
回答 1查看 36关注 0票数 2

嗨,我是gradlenodejs的新手。我正试着在玉石上添加p标签的衬垫。我的玉器档案如下

代码语言:javascript
复制
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中工作的

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-04-30 12:11:18

像蟒蛇一样,Jade对线条缩进是非常严格的。您需要在右边放两个空格,如下所示:

代码语言:javascript
复制
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>标记中。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29967221

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档