Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/282.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
C# <;ol>&书信电报;李>;asp:中继器中的标记问题_C#_Repeater - Fatal编程技术网

C# <;ol>&书信电报;李>;asp:中继器中的标记问题

C# <;ol>&书信电报;李>;asp:中继器中的标记问题,c#,repeater,C#,Repeater,我对asp:Repeater有一些小问题。我正在一行打印中继器内的标签。如何将其打印为两行,如: - test - test2 - test3 - test4 - test5 - test6 ... 现在就像 - test - test2 - test3 ... 您可以尝试在中继器上添加CssClass属性,并使用简单的CSS: .myRepeaterCssClass ol li { width: 48%; float: left; } 嗨,好主意。我会尽力让你知道

我对asp:Repeater有一些小问题。我正在一行打印中继器内的标签。如何将其打印为两行,如:

- test   - test2
- test3  - test4
- test5  - test6
...
现在就像

- test
- test2
- test3
...

您可以尝试在中继器上添加CssClass属性,并使用简单的CSS:

.myRepeaterCssClass ol li {
    width: 48%;
    float: left;
}

嗨,好主意。我会尽力让你知道的。谢谢