严重问题!!!the world浏览器不支持menu控件的部分属性啊!高手帮忙!!
做了一个Menu控件,数据源是从数据库读出来然后经过xsl转化的,在IE浏览器中很正常,但是到了the world浏览器,menu的下拉菜单全部都不显示!!!
Menu代码如下:
<asp:Menu ID= "menu " DataSourceID= "xmlDataSource1 " runat= "server "
ForeColor= "White " StaticSubMenuIndent= "10px " StaticDisplayLevels= "1 " Orientation= "Horizontal " StaticEnableDefaultPopOutImage= "False " BorderStyle= "None " BorderWidth= "0px " Height= "24px ">
<DataBindings>
<asp:MenuItemBinding DataMember= "MenuItem " NavigateUrlField= "NavigateUrl "
TextField= "Text " ToolTipField= "ToolTip "/>
</DataBindings>
<StaticSelectedStyle BackColor= "#FFCC66 " BorderStyle= "None " />
<StaticMenuItemStyle HorizontalPadding= "5px " VerticalPadding= "0px " Height= "24px " Width= "100px " CssClass= "menu_align " BorderStyle= "None " BorderWidth= "0px " BackColor= "Transparent " />
<DynamicMenuStyle BackColor= "Transparent " CssClass= "menu1 "/>
<DynamicSelectedStyle BackColor= "Transparent " ForeColor= "Black " />
<DynamicMenuItemStyle HorizontalPadding= "5px " VerticalPadding= "0px " Height= "23px " Width= "110px " ForeColor= "Black " BackColor= "Transparent " CssClass= "menu_alpa " />
<DynamicHoverStyle BackColor= "White " Font-Bold= "False " ForeColor= "Black "/>
<StaticHoverStyle BackColor= "#A1C8F3 " Font-Bold= "False " ForeColor= "White " BorderStyle= "None " Height= "23px " />
<StaticMenuStyle CssClass= "menu3 " BorderStyle= "None " BorderWidth= "0px " VerticalPadding= "0px " />
</asp:Menu>
<asp:XmlDataSource ID= "xmlDataSource1 " TransformFile= "~/TransformXSLT.xsl "
XPath= "MenuItems/MenuItem " runat= "server "/>
---------------------------------
后台如下:
protected void Page_Load(object sender, EventArgs e)
{
DataSet ds = new DataSet();
using (SqlConnection conn = db.conn())
{
string sql = "Select MenuID, Text,Description, ParentID,Url from Menu order by orders ASC ";
SqlDataAdapter da = new SqlDataAdapter(sql, conn);
da.Fill(ds);
da.Dispose();
}
ds.DataSetName = "Menus ";
ds.Tables[0].TableName = "Menu ";
DataRelation relation = new DataRelation( "ParentChild ",
ds.Tables[ "Menu "].Columns[ "MenuID "],
ds.Tables[ "Menu "].Columns[ "ParentID "], true);
relation.Nested = true;
ds.Relations.Add(relation);
xmlDataSource1.Data = ds.GetXml();
}
----------------------------
到底在什么地方设置一下就可以解决呢???
大家帮忙啊!!!!!!!!!!!
[解决办法]
帮顶了。
[解决办法]
检查一下样式 css文件,webconfig等 实在不行,你在怀疑是浏览器的问题吧