Home > front end >  Add the thymeleaf th: div after label can't display on the same line
Add the thymeleaf th: div after label can't display on the same line

Time:09-18

Want to use th: switch to display the specified HTML content, is there any other ways to do this effect, th: tag in a div, div will automatically wrap, with the display: inline - block method also not line, the reason should be more a layer of div,
Details:
Using th: after each each col dominant in one line, not a line of multiple display
XXX




Originally this is normal display:
XXX



Other: in the framework of the bootstrap is a springboot project,

CodePudding user response:

XXX

CodePudding user response:

refer to the second floor nian_cj response:
& lt; Div th: each="item, itemStat: ${xxxx_list}" th: switch="${item. Xxxx_area}" & gt;
XXX

this is not enough, with the outside div ok,
  • Related