我目前正在使用Bootstrap 4 beta,我有嵌套标签。当试图在它们之间切换时,它会产生混淆。
我不确定它在Bootstrap 4 alphas中是否有相同的行为,但我认为这是测试版中的新行为。
HTML(JSFiddle):
SELECT IF(rank=0, invoice_id, '-') AS invoice_id,
invoice_item_id
FROM
(SELECT inv.id AS invoice_id,
invHas.id AS invoice_item_id,
@rank:=CASE WHEN @invoice <> inv.id THEN 0 ELSE @rank+1 END AS rank,
@invoice:=inv.id AS clset
FROM invoice inv,
invoice_has_item invHas,
(SELECT @rank:= -1) r,
(SELECT @invoice:= -1) i
WHERE invHas.invoiceID=inv.id
order by inv.id, invoice_has_item.id
) AS ranked;