There are too many ellipses in the bootstrap-table, column, and the mouse is put on it to display all the information?

bootstrap-table rendering table, specify the width of the column, more than the width of the ellipsis display, require the mouse up to be similar to title to display the whole content? The rendering table code is as follows

clipboard.png

Mar.09,2021

1, write an empty div
2, use onmouseover event mouse to move in and get event objects clientX and clientY to change the location and content of div, and display div
3, onmouseout event mouse move out of div to hide

<div id="showDiv"></div>
<div class='content' onmouseover="overShow(this,event)" onmouseout="outHide()"></div>
Function overShow(obj, e) {//
var showDiv =document.getElementById('showDiv');
var theEvent =window.event|| e;
showDiv.style.left= theEvent.clientX +"px";
showDiv.style.top= theEvent.clientY +"px";
showDiv.style.display='block';
showDiv.innerHTML = obj.innerHTML;
}
Function outHide() {//
var showDiv =document.getElementById('showDiv');
showDiv.style.display='none';
showDiv.innerHTML ='';
}

add a style to hide first

/**/
white-space: nowrap;
/**/
text-overflow: ellipsis;
overflow: hidden;/**/
then add: hover cancels text-overflow, overflow, etc.

is not familiar with this plug-in, but CSS can do it

Menu