链表取值
<div class="ssjj_one left">
<div class="ssjj_img left"></div>
<ul class="right text_l black">
<%if (JjSxjj != null)
{
if (JjSxjj.Count > 4)
{
Newslist = JjSxjj.GetRange(0, 4);
}
else
{
Newslist = JjSxjj;
}
foreach (Entity.News news in Newslist)
{
%> <li>
</li> <%
}
} %>
</ul>
</div>
<div class="ssjj_zi right text_l">
<ul class="right text_l black f_14">
<%if (JjSxjj != null)
{
if (JjSxjj.Count > 0)
{
if (JjSxjj.Count > 13)
{
Newslist = JjSxjj.GetRange(8, 5);
}
else
{
if (JjSxjj.Count > 8)
{
Newslist = JjSxjj.GetRange(8, JjSxjj.Count - 8);
}
else
{
Newslist = JjSxjj.GetRange(0, 0);
}
}
}
foreach (Entity.News news in Newslist)
{
%>
<li>
</li>
<%
}
} %>
</ul>
</div>