问题描述
我正在动态更改跨度数据,然后我没有单线输出。
我只需要单行中的所有数据
一种情况:
document.getElementById(_ nextRefresh1)。innerHTML =seconds。;
文件。 getElementById(_ nextRefresh)。style.display =block;
document.getElementById(Span1)。innerHTML =项目列表将自动刷新。;
document.getElementById(取消).style.display =none;
第二种情况:
document.getElementById(_ nextRefresh1)。innerHTML =;
document.getElementById(_ nextRefresh)。style.display =none ;
document.getElementById(Span1)。innerHTML =在结果排序时关闭自动刷新。;
document.getElementById(取消 ).style.display =block;
我尝试了什么:
< asp:Panel>
< span id ='Span1'>< / span>
< span id ='_ nextRefresh'> 60< / span>
< span id ='_ nextRefresh1'>< / span>
< / asp:Panel>
I am changing the span data dynamically,Then i am not getting the out in single line.
I need all the data in single line only
one scenario:
document.getElementById("_nextRefresh1").innerHTML = "seconds.";
document.getElementById("_nextRefresh").style.display = "block";
document.getElementById("Span1").innerHTML = "Item list will auto-refresh in.";
document.getElementById("Cancel").style.display = "none";
2nd scenario:
document.getElementById("_nextRefresh1").innerHTML = "";
document.getElementById("_nextRefresh").style.display = "none";
document.getElementById("Span1").innerHTML = "Auto-refresh is turned off while results are sorted.";
document.getElementById("Cancel").style.display = "block";
What I have tried:
<asp:Panel>
<span id='Span1'></span>
<span id='_nextRefresh'>60</span>
<span id='_nextRefresh1'></span>
</asp:Panel>
推荐答案
这篇关于跨度数据不显示单行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!