jquery数据表排序图标放在实际文本下方的行上?
除了查看/删除 jquery Datatables 插件的 sDom 设置之外,我还浏览了所有 CSS 文件(其中有很多),但由于某种原因,我旁边的排序图标(向上和向下箭头)文本位于文本下方,就像以某种方式输入了 html
一样。
有人曾经发生过这种情况吗?
I have scoured through all my CSS files (and there are a lot of them) in addition to looking at/removing the sDom settings for my jquery Datatables plug in but for some reason, the sort icon (up and down arrows) next to my text is place below the text as if an html
was somehow input.
Has anybody ever had this happen before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这就是我解决这个问题的方法
图标已经有这个类,但由于某种原因它没有正确显示的样式
this is how I solved this
The icon already has this class, but for some reason it doesn't have the style(s) to correclty display
我发现 Firefox 的 Firebug 扩展在调试 CSS 问题时非常有用。
您可以“实时”禁用和修改页面上的 CSS 样式。真正消除了风格继承混乱中的猜测,否则一夜之间就无法解决。
图片来自 Firebug 网站 http://getfirebug.com/css。
I find the Firebug extension for Firefox to be invaluable when debugging CSS issues.
You can disable and modify the CSS styles on your page "live". Really takes the guesswork out of the style inheritance mess that can otherwise be night impossible to solve.
Image from the Firebug website at http://getfirebug.com/css.
答案就在我面前,但显然您必须将“显示”类应用于所有表格元素,脚本才能正常运行。我花了几个小时研究 CSS,但没有任何结果。我希望我的时间可以帮助别人拯救一堵新墙。
the answer was right in front of me but apparently you have to apply the 'display' class to all table elements for the script to properly function. I had spent hours upon hours looking through CSS on this but nothing came back. I hope my time can help save somebody else a new wall.