简体   繁体   English

显示带分号的省略号

[英]Show ellipsis with sort indicator

In my fiddle I have three examples of how to show a sort indicator on a table header. 在我的小提琴中,我有三个示例,说明了如何在表头上显示排序指示符。

未折叠的标题

My issue is on the third column. 我的问题在第三栏。 When I shrink to ellipsis, the sort indicator is hidden in Chrome and in IE it is placed on top of the text. 当我缩小到省略号时,排序指示符在Chrome中隐藏,在IE中则位于文本上方。

Chrome

折叠的铬

IE IE

在此处输入图片说明

Is there a way to have the sort indicator stay snug with the caption and stay visible when displaying the ellipsis (Similar to the second column)? 在显示省略号时(与第二列类似),是否有一种方法可使排序指示器紧贴标题保持可见

I've tried breaking the indicator out into its own span, but I can't seem to get the span with the caption to collapse. 我曾尝试将指标分成自己的跨度,但似乎无法获得带有折叠标题的跨度。

For me, this seems more noticeable in IE than Chrome. 对我来说,这在IE中似乎比Chrome更引人注意。 One way around this might be to use the the CSS content property and move the sort indicator into that and remove the background-image from the .indicator-right class. 解决此问题的一种方法可能是使用CSS content属性并将排序指示符移入该属性,然后从.indicator-right类中删除背景图像。

jsFiddle example jsFiddle示例

CSS CSS

.indicator-right:after {
    content:url(data:image/gif;base64,R0lGODlhFQAJAIAAACMtMP///yH5BAEAAAEALAAAAAAVAAkAAAIXjI+AywnaYnhUMoqt3gZXPmVg94yJVQAAOw==);
}

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

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