简体   繁体   中英

Table border bug in Firefox

If open/close tables here using Firefox, unnecessary borders pop out.

在此处输入图片说明
I can solve this problem using JS:

setTimeout(function () {
    $table.css({'table-layout': 'auto'})
}, 0);
setTimeout(function () {
    $table.css({'table-layout': 'fixed'});
}, 60);

Can it be solved without JS?

It does seem to be a bug in the graphics engine of Firefox, however I've noticed that as soon as you remove border-collapse: collapse; from the table, it no longer occurs.

So maybe you can adapt your styling a bit and manage to make it look good also without border-collapse. It all depends on how flexible you are on the look of the tables.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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