问题
It's getting late and I'm rapidly losing the ability to think.
Is it possible to float <td>
elements consistently across a few decent browsers? Seems to work in Firefox, I hear Bad Things about IE but then I'm free of those shackles for this project. Really, I'm concerned about Chrome's lack of want to play.
EDIT: If it helps at all, I am extremely lax about browser compliance this time 'round, I expect deploying this app only to a controlled user group, and its a tool, not a model of perfect code - so I'm willing to blind-eye a dirty hack if there's one going.
回答1:
While floating td is weird and shouldn't be done, my call would be to make them display:block
before trying anything else.
I'd need to see some code in order to be more specific about what to do.
来源:https://stackoverflow.com/questions/4489304/able-to-float-td-elements-consistently