How can I turn the output of asp:SiteMapPath into a list?

前端 未结 5 2369
借酒劲吻你
借酒劲吻你 2021-02-20 04:52

I\'m extremely unfamiliar with both .NET and VB.NET and can\'t quite figure out how to do this. Say I have code like this:

&
5条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-20 05:24

    While you can't get rid of the span tags, you CAN accomplish what you want. I ran into this same issue because I was using a purchased CSS/HTML site template the client wanted, but the entire thing was based on

      's and
    • 's. Refactoring the CSS would have been too painful, so I found this solution that worked well without any changes to the CSS code.

      You'll do two things:

      1. Override the default Node template with one that uses
      2. tags
      3. Wrap the whole thing in a
          tag

      Here's an example:

      
      

提交回复
热议问题