Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/323.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在单列中显示地址,而不是在自己的列中显示地址的每一行_Java_Html_Spring Boot_Thymeleaf - Fatal编程技术网

Java 在单列中显示地址,而不是在自己的列中显示地址的每一行

Java 在单列中显示地址,而不是在自己的列中显示地址的每一行,java,html,spring-boot,thymeleaf,Java,Html,Spring Boot,Thymeleaf,我有一个Thymeleaf模板,包含以下内容: <td th:text="${tempUser.addressLine1}" /> <td th:text="${tempUser.addressLine2}" /> <td th:text="${tempUser.town}" /> <td th:text="${tempUser.county}" /> <td t

我有一个Thymeleaf模板,包含以下内容:

<td th:text="${tempUser.addressLine1}" />
<td th:text="${tempUser.addressLine2}" />
<td th:text="${tempUser.town}" />
<td th:text="${tempUser.county}" />
<td th:text="${tempUser.country}" />
<td th:text="${tempUser.postcode}" />

如果你不需要桌子,你可以这样做

.container{
显示器:flex;
弯曲方向:立柱;
}
/*
.container>span{
显示:块;
}
*/

如果您不需要表格,可以这样做

.container{
显示器:flex;
弯曲方向:立柱;
}
/*
.container>span{
显示:块;
}
*/

Address Line 1
Address Line 2
Town
County
Country
Post Code