Closed toypipi closed 7 years ago
如图,将 html 页面改为 thymeleaf 模板引擎时,报错 Attribute name "data-tab"associated with an element type "a" must be followed by the ' = ' character. 我猜测是 <a data-tab href="#tabToday"> 这种用法不符合 xml 标准。但不知道如何解决,请大佬解答,谢谢您!
<a data-tab href="#tabToday">
自己找到了解决办法,只需要换成 bootstrap 标签页用法,即将 <a data-tab href="#tabToday"> 换成 <a href="#tabToday" data-toggle="tab">就可以了。
<a href="#tabToday" data-toggle="tab">
如图,将 html 页面改为 thymeleaf 模板引擎时,报错 Attribute name "data-tab"associated with an element type "a" must be followed by the ' = ' character. 我猜测是
<a data-tab href="#tabToday">
这种用法不符合 xml 标准。但不知道如何解决,请大佬解答,谢谢您!