English 中文(简体)
CSS 提供 Chrome和Sato的弹 Bull清单菜
原标题:CSS rendering of Bullet List menu in Chrome and Safari

使我的菜 The留在 Chrome内是一个问题。

www.un.org/Depts/DGACM/index_spanish.htm 图像:

Edit : I was right, The problem was exactly related to rendering Asp.Net bulletin list Control, and not the HTML ! And it should be called as one of the bugs of Google Chrome. Somebody deleted the Asp.Net tag wrongly, so I added it again, I think maybe one change in CSS could make it understandable for the WebKit browsers, a hack a trick, or something similar could help

The source will work as expected in Firfox 8+ and IE 9 as I tested, but the menu will drop one step down in Chrome and Safari (WebKit) ! Here You have the details, any helps is greatly appreciated

The menu used Asp.Net Bulletin List Control

www.un.org/Depts/DGACM/index_spanish.htm 这是《刑法》:。

<div id="mainmenu">
    <asp:BulletedList  id="nav" Runat="server" DisplayMode="HyperLink" Target="_self" EnableViewState="false">
        <asp:ListItem 
            Text="Home"
            Value="" />
        <asp:ListItem 
            Text="Contact Us"
            Value="#" />
        <asp:ListItem 
            Text="About Us"
            Value="#" />
    </asp:BulletedList>
</div>

www.un.org/Depts/DGACM/index_spanish.htm 采用DevTools, Chrome将显示<>Gap。 * E/CN.6/2009/1。

<div id="mainmenu">
    <ul id="nav">
        <li><a href="default.aspx" target="_self">Home</a></li><li><a href="contact.aspx" target="_self">Contact Us</a></li><li><a href="about.aspx" target="_self">About Us</a></li>
    </ul>
</div>

Here as you can see there is a gap (Just viewable via the DevTools ), when I remove this gap the rendering issue will be disappeared . It s source via "view source" seems normal ...

www.un.org/Depts/DGACM/index_spanish.htm Edit - The Generated RUS COde :

<div id="mainmenu">

" "

  • Home
  • Contact Us
  • About Us
  • At Last If I change the bullet List simply to the below code, It ll work on them :

    <ul id="nav">
        <li><a href="../default.aspx">Home</a></li>
        <li><a href="../contact.aspx">Contact Us</a></li>
        <li><a href="../about.aspx">About</a></li>
    </ul> 
    
    问题回答

    看一看你在座标上的其他引文是什么样子。 你们能够告诉他们来自哪里?





    相关问题
    Anyone feel like passing it forward?

    I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

    How to Add script codes before the </body> tag ASP.NET

    Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

    Transaction handling with TransactionScope

    I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

    System.Web.Mvc.Controller Initialize

    i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

    Microsoft.Contracts namespace

    For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

    Separator line in ASP.NET

    I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

    热门标签