开发者

<ol><li> tags problem insise asp:repeater

开发者 https://www.devze.com 2023-01-20 03:18 出处:网络
i have small problems with asp:Repea开发者_运维知识库ter. I am printing <ol><li> tags inside repeater in one line. How can i print it in two lines like:

i have small problems with asp:Repea开发者_运维知识库ter. I am printing <ol><li> tags inside repeater in one line. How can i print it in two lines like:

- test   - test2
- test3  - test4
- test5  - test6
...

now is like

- test
- test2
- test3
...


You can try putting a CssClass attribute on you repeater, and use a simple CSS :

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号