简体   繁体   English

jquery可排序边框崩溃铬野生动物园

[英]jquery sortable border collapse chrome safari

I'm using jQuery sortable() on a table with border-collapse: collapse . 我在带有border-collapse: collapse的表上使用jQuery sortable() border-collapse: collapse Something strange happens with the spacing between the rows in Chrome and Safari. Chrome和Safari中的行之间的间距会发生奇怪的事情。 It seems ok in IE, FF, & Opera. 在IE,FF和Opera中似乎没问题。

Here is an example: http://jsfiddle.net/benstenson/LMqNH/ 这是一个例子: http//jsfiddle.net/benstenson/LMqNH/

  1. border-collapse: separate is one option. border-collapse: separate是一个选项。

  2. Calling $('table').hide.show(0) on the sortable() stop event is another option. 在sortable()停止事件上调用$('table').hide.show(0)是另一种选择。

Anyone know what the problem is? 谁知道问题是什么?

Here is a screenshot after moving the rows around. 移动行后,这是一个截图。

在此输入图像描述

I've been working on this for a while. 我一直在研究这个问题。 The closest I've been able to achieve is this: 我能够达到的最接近的是:

http://jsfiddle.net/rogerblanton/EtC2E/1/ http://jsfiddle.net/rogerblanton/EtC2E/1/

I changed a little bit of the CSS to put the border on something different and it looks pretty close if not exactly what you want. 我改变了一点CSS,把边框放在不同的东西上,如果不是你想要的话,它看起来非常接近。

Hope it helps. 希望能帮助到你。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM