English 中文(简体)
如何检查文本领域是否做了总结,所总结的行文数量
原标题:How to check if a text field has wrapped and the number of lines it has wrapped to

我有一个复杂的垂直体,包括我设计中的透明巴布亚新几内亚。 我需要使这些菜单在高潮中生动地增长,因为其内容从一个中央监测系统中删除,一些纽芬兰人能够根据案文实地总结的多少条线增长。

我的先见:

<ul>
 <li>
     <a>
       <span>
            <span> This is an example of a very long menu name which will wrap<span>
         </span>
     </a>
 </li>
</ul>

如果第二个交叉体在其中总结案文,以及用多少行文,以便我能为这个菜单项目提供不同的背景形象,那么我就需要使用一些 j。

是否有任何人知道我会怎样这样做?

Thanks, James

最佳回答

设法找到解决办法。 我可以采用“高纬度”方法检查距离的高度,如果高度大于原大小,我可以向该纽州提供不同的形象:”

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签