我尝试在slim中制作一个简单的表格。
或者
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
can anybody help me?
table.table.table-striped
而不是table class="table table-striped"
,也就是说,用点分隔符将你的类名链接在一起。这样可以节省时间 :) - jdoe