江湖纠结啦。。哥哥姐姐们_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:25:04
Original
878 people have browsed it

<li style='cursor:pointer;' onclick='preBeSwitch(this);' id='current_BE_ID'><%=com.huawei.data.analyse.sys.util.HtmlEncodeUtil.htmlEncoding(currentBE)%></li>
Copy after login


这是原来的。那个currentBE可能是100个字符。这样就先撑的也没很难看。我想至显示几个字符出来,鼠标放上去,title显示完整的名字,怎么弄呢
自己倒腾了半天弄成这样,不是想要的效果
<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";


})
纯菜鸟,谢谢


回复讨论(解决方案)

擦。。瞎猫碰死耗子。碰好了。。

ca  还没有看懂你的问题,就看到你碰好了~~~~

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!