My code.
Css:
td div{
width:100%;
height: 40px;
overflow: hidden;
padding-top: 9px;
}
td div:hover{
overflow: auto;
}
Html:
<td><div><?php echo $objProg->getagen(); ?></div></td>
When you mouse over the td
you would like the option to scroll with the mouse scroll did not work, so you can only scroll the text by clicking on the arrows.