<li style='cursor:pointer;' onclick='preBeSwitch(this);' id='current_BE_ID'><%=com.huawei.data.analyse.sys.util.HtmlEncodeUtil.htmlEncoding(currentBE)%></li>
Copy after login
This is the original. That currentBE may be 100 characters. In this way, it won't look ugly if you hold it up first. I want to display a few characters, put the mouse on it, and the title will display the complete name. How to do it?
I spent a long time to get it like this. It is not the desired effect.
<li style='cursor:pointer;' onclick='preBeSwitch(this);' id='current_BE_ID'><div id='currentBE_div' style='width:50px;position:absolute;'><%=com.huawei.data.analyse.sys.util.HtmlEncodeUtil.htmlEncoding(currentBE)%></div></li>
Copy after login
,
$( function(){
document.getElementById("currentBE_div").style.height=50;
document.getElementById("currentBE_div").style.overflow="auto";
})
Pure novice, thank you
Reply to discussion (solution)
Rub. . A blind cat kills a mouse. Touched. .
ca Before I understood your question, I saw you touched it~~~~