我在主 div 标签内有一组 div 标签,我根据条件按顺序显示。我将不得不在时间延迟后逐行显示内部 div 标签。我怎么做?
<div id="comments" class = "u4073_container">
@if (@Messages != null)
{
for (int i = 0; i < Messages.Count; i++)
{
if (Messages[i].MessageType == 0)
{
<div id="lblBlack" style="color:black;font-size: 13px;font-style: normal; font-family: Arial;">@Messages[i].Message </div>
<div style="height: 5px;"></div>
}
else if (Messages[i].MessageType == 1)
{
<div id="lblGreen" style="color:green;font-size: 13px;font-style: normal; font-family: Arial;">@Messages[i].Message </div>
<div style="height: 5px;"></div>
}
else if (Messages[i].MessageType == 2)
{
<div id="lblRed" style="color:red;font-size: 13px;font-style: normal; font-family: Arial;">@Messages[i].Message </div>
<div style="height: 5px;"></div>
}
else if (Messages[i].MessageType == 3)
{
<div id="lblBlue" style="color:blue;font-size: 13px;font-style: normal; font-family: Arial;">@Messages[i].Message </div>
<div style="height: 5px;"></div>
}
}
}
</div>
在此先感谢您的帮助 !!!