加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – rails slim语法错误

发布时间:2020-12-17 03:35:51 所属栏目:百科 来源:网络整理
导读:我试着做一个简单的桌子 table class="table table-striped" thead tr th username 它工作正常,但当我尝试添加另一个th或tbody我得到一个错误格式缩进,例如这段代码对我不起作用 table class="table table-striped" thead tr th username th provider 要么 t
我试着做一个简单的桌子

table class="table table-striped"
  thead
    tr
      th username

它工作正常,但当我尝试添加另一个th或tbody我得到一个错误格式缩进,例如这段代码对我不起作用

table class="table table-striped"
  thead
    tr
      th username
      th provider

要么

table class="table table-striped"
  thead
    tr
      th username
  tbody
    tr
      td test

有谁能够帮我?

解决方法

在没有看到原始源的情况下,我只能在相同的缩进级别的后续行上猜测 your text editor inserted tabs instead of spaces.确保一切都是空格?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读