如何显示这个水平不规则的显示块?

时间:2021-04-15 22:23:05

Please see this website:

请参阅本网站:

http://www.rivvir.com/blog/

http://www.rivvir.com/blog/

You can see that the blocks of the columns are all irregular. For eg. 1st column might be less in height, 2nd might be big and so on. But when the 2nd row of data starts it starts right below where the 1st row 1st column's data got over.

您可以看到这些列的块都是不规则的。如。第一列可能比第二列高,等等。但是当第二行数据开始时,它从第一行第一列数据结束的地方开始。

How do I achieve this type of display in Asp.Net? Assume I am using repeater for this purpose. Can you please suggest how would I do that?

如何在Asp.Net中实现这种类型的显示?假设我正在为此目的使用中继器。你能建议我该怎么做吗?

1 个解决方案

#1


1  

Check out ThinkingStiff's answer to this question: CSS: Ignoring divs height when floating

查看ThinkingStiff对这个问题的答案:CSS:在浮动时忽略divs的高度。

It can be done using CSS, but uses browser-specific CSS selectors. Take a look at the jsfiddle he linked to, as it shows the full css-markup for cross-browser support.

它可以使用CSS完成,但是使用特定于浏览器的CSS选择器。看看他链接的jsfiddle,因为它显示了跨浏览器支持的完整的css-markup。

#1


1  

Check out ThinkingStiff's answer to this question: CSS: Ignoring divs height when floating

查看ThinkingStiff对这个问题的答案:CSS:在浮动时忽略divs的高度。

It can be done using CSS, but uses browser-specific CSS selectors. Take a look at the jsfiddle he linked to, as it shows the full css-markup for cross-browser support.

它可以使用CSS完成,但是使用特定于浏览器的CSS选择器。看看他链接的jsfiddle,因为它显示了跨浏览器支持的完整的css-markup。