Ciao a tutti, io ho una stringa presa da un db all'interno di un td di altezza massima 35 (fa vedere solo le prime due righe).
Quello che mi interessa fare è che se la stringa supera questa altezza compaia un pulsante show more che permetta di aprire un popup con tutto il testo.
Vi posto il codice!
Non riesco proprio a trovare una soluzione a questo problemacodice:<style> .table { table-layout: fixed; } #this5552 { display: block; height: 165px; overflow-y: scroll; } #this5555 { display: block; height: 35px; overflow: hidden; } #this5553 { width: 110px; } #text5534 { height: 30px; overflow: hidden; text-overflow: ellipsis; } </style> <div id="this5552"> <table border=1> <thead> <tr> <td id="this5553">Data</td> <td>Testo</td> </tr> </thead> <tbody> <% List<Stringhe> mylist = myString.getAllCom(10); for (Stringhe l : mylist) { %> <tr> <td id="this5553"><%=l.getDt()%></td> <td id="this5555"><div id="text5534"><%=l.getText()%></div></td> </tr> <% } %> </tbody> </table> </div>![]()

Rispondi quotando