English 中文(简体)
jquery-mobile cs styling在通过jquery编辑时消失
原标题:jquery-mobile css styling disappears when editing html through jquery

i 正在开发我的首个支旋涡轮机,对网络开发和总分类来说都是新的。

我在内容部分有以下html:

        <div data-role="collapsible" data-collapsed="false"  data-content-theme="c">
            <h3>Results</h3>
            <p id="UnitResult"> Results..  </p>
        </div>
        <div data-role="collapsible" data-collapsed="true" data-content-theme="c" >
            <h3 id ="ShowAllh3">Show all</h3>
            <ul id="AllUnitsResult" data-role="listview" data-inset="true" data-theme="d"> 
              <li>list element</li>
              <li>list element 2</li> </ul>
        </div>

我也有一个<代码><input category=" number” 。

$( #UnitResult ).html(volume + " " + fromText + " equals " + result + " " + toText + ".");
$( #ShowAllh3 ).text( test );
for(var i = 0; i < resultArray.length; i++) {
   $( #AllUnitsResult ).append( <li class = "number">  + Units[i].name +  :   + resultArray[i] +  </li> );
}

The problem i have is that the styling of these elements change when i add new html tags in realtime, is there any way to avoid this?

在任职前:

在任职前:

职能要求:

“entergraph

你们可以看到,列入清单的新内容看上去很奇怪,而标题是“一切”改为“测试”,但格式已经采用。

最佳回答

1. 解决清单问题:

$("#AllUnitsResult").listview("refresh"); 
问题回答

暂无回答




相关问题
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!

热门标签