当前位置:编程学习 > C#/ASP.NET >>

我循环一个div服务器上竖着排列,本机正常

我写了一个循环div的,在本机运行正常,放到服务器上就竖着排列了,请问是什么原因
<% if (dtCheap.Rows.Count > 0)
               { %>
            <% for (int i = 0; i < dtCheap.Rows.Count; i++)
               { %>
            <div class="single_cheap_div">
                <div class="single_cheap_div_left">
                   <a href="CheapDetail.aspx?CheapID=<%=dtCheap.Rows[i]["CheapID"].ToString()%>"><img src="CheapImages/<%=dtCheap.Rows[i]["CheapThumb"].ToString()%>" style="width: 166px; height: 227px;" alt="" /></a>
                </div>
                <div class="single_cheap_div_right">
                    <p class="p1">
                        <strong>促销标题:</strong><span><%=dtCheap.Rows[i]["CheapTitle"].ToString()%></span></p>
                    <p class="p1">
                        <strong>开始时间:</strong><span><%=dtCheap.Rows[i]["CheapStart"].ToString()%></span></p>
                    <p class="p1">
                        <strong>结束时间:</strong><span><%=dtCheap.Rows[i]["CheapEnd"].ToString()%></span></p>
                    <p class="p1">
                        <strong>活动地址:</strong><span><%=dtCheap.Rows[i]["CheapAdress"].ToString()%></span></p>
                        
                    <div><%=dtCheap.Rows[i]["CheapDes"].ToString()%></div>
                    <p class="p1">
                        <a href="CheapDetail.aspx?CheapID=<%=dtCheap.Rows[i]["CheapID"].ToString()%>"><img class="sign_up_cheap" src="images/pick_cheap-03.png" alt="" /></a></p>
                </div>
            </div>
            <% } %>
            <% } %> c# --------------------编程问答-------------------- display:inline --------------------编程问答-------------------- 把样式帖出来呀 ,是不是样式被覆盖了? --------------------编程问答-------------------- 奥有可能是,谢谢
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,