Recently, I am working on mobile Web development.
Add a li node under a UL Node
Ul code is as follows:
<Ul id = "alarmlist" data-role = "listview" data-inset = "true" data-theme = "C">
<Li>
<A href = "" rel = "external" style = "font-style: normal "> <P> <font color = Red> & nbsp; x offset 1 m beyond the normal range </font> </P>
<P> <font color = Red> & nbsp; security level: Level 3 alert check! </Font> </P>
</A>
</LI>
<Li>
<A href = "" rel = "external" style = "font-style: normal ">
<H3> & nbsp; infiltration traffic 1
<P> & nbsp; <font color = Red> traffic: 23 out of normal range </font> </P>
<P> & nbsp; <font color = Red> Security Level: Level 3 alert check! </Font> </P>
</A>
</LI>
<Li>
<A href = "" rel = "external" style = "font-style: normal "> <P> <font color = Red> & nbsp; the depth drop value is 3 out of the normal range </font> </P>
<P> <font color = Red> & nbsp; security level: Check for risks! </Font> </P>
</A>
</LI>
</Ul>
I add a li Node
VaR STR = "<li id = \" Li1 \ "> <a href = \" \ "rel = \" external \ "style = \" font-style: normal \ ">
But it's really hard to figure out a picture like this.
The effect is as follows:
Too ugly
Add a line of code
$("#AlarmList").listview('refresh');
The effect is coming soon.