Able to float td elements consistently?

拟墨画扇 提交于 2019-12-11 16:35:02

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!