本帖最后由 oBehavior 于 2012-11-15 16:14:07 编辑

解决方案 »

  1.   

    页面:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ULTest.aspx.cs" Inherits="ULTest" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>无标题页</title>
        <style type="text/css">
            li{ color:red; }
        </style>
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
        <ul id="ul1" runat="server" >
        </ul>
        </div>
        </form>
    </body>
    </html>
    后置文件
    using System;
    using System.Collections;
    using System.Configuration;
    using System.Data;
    using System.Linq;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Xml.Linq;public partial class ULTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack) 
            {
                this.ul1.InnerHtml = "<li>第1个</li><li>第2个</li>";
            }
        }
    }
    IE下很正常啊
      

  2.   

    overflow:hidden 没有 position:relative IE不显示...