0

I'm trying to create this grid:

grid example

I've made some html generated with jQuery and rotated that with jQuery.rotate. Now my div's are overlapping each other causing a problem to my hover state.

Couldn't find any question that looks like this, has anybody done something like this before?

If you need to look into the code I can post the html / css and javascript. Because it's quite a lot of code I'll do that by request.

4

2 回答 2

1

好吧,将太多的潜水叠加在一起并不是我认为的好主意..你为什么不尝试使用 svg 来代替..那些是为这种情况而设计的..但是如果你仍然想使用 div 那么请向我们展示您项目的代码.. :)

于 2012-04-13T18:24:59.437 回答
0

为什么不对具有绝对定位的每个块使用 css transform-rotate,然后您可以使用 jQuery 将所有的顶部和左侧属性设置到网格上。我在http://neolab.no/上找到了类似的东西,他们还使用媒体查询来重新定位每个块。

于 2013-05-03T14:28:05.440 回答