在运行时在浏览器中自动生成跨度 [英] span automatically get generated in browser at runtime
本文介绍了在运行时在浏览器中自动生成跨度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我按餐厅进行标签搜索.但有时会自动换行.使用
将自动在.am上占用额外的跨度
Hi all ,
i have a tab search by restaurant .but it sometimes get wrap . it will take extra span automatically .am, using
<tr>
<td>
</td>
<td>
<ol id="toc">
<li><a href="#page-3" onmouseup="return ClearAllFieldbyrestaurantname();"><span>Search by Restaurant</span></a></li>
<li><a href="#page-2" onmouseup="return ClearAllFieldbycuisines();"><span>Search by Cuisine</span></a></li>
<li><a href="#page-1" onmouseup="return ClearAllFieldbyaddress();"><span>Search by Address</span></a></li>
</ol>
</td>
<td>
</td>
</tr>
发生这种事吗?
在mozilla中,额外的跨度显示为:
< li>< a href =#page-3" onmouseup ="return ClearAllFieldbyrestaurantname();"> span>按餐厅搜索</span></a></li>
span id ="dtx-highlighting-item" dtx-highlight-backgroundcolor ="lime"
y this happening?
in mozilla the extra span is displaying lik this:
<li><a href="#page-3" onmouseup="return ClearAllFieldbyrestaurantname();"><span>Search by Restaurant</span></a></li>
span id="dtx-highlighting-item" dtx-highlight-backgroundcolor="lime"
推荐答案
i am using 2 tab .
Tab 1:if i click search by Area tab ,it displays
Area and city textbox and search button.if u enter the same and click the button .it displays the restaurant in tat given area and city.
Tab 2:this is serach by restaurant .in this u can search the particular restaurant directly .
In this sometimes search by restaurant get wrap lik search by and restuarant .
<span>search by</span>
<span>restaurant</span>
am using lik this (refer the above code)
<span>Search by Restaurant</span>
reason is browser generate span for
resturant lik(span id="dtx-highlighting-item" dtx-highlight-backgroundcolor="lime").
automatically split into search by and restaurant ,so it display lik a tab below the original one and spoil the design .so how can i solve this?
这篇关于在运行时在浏览器中自动生成跨度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文