ASP.Net中的菜单和CSS [英] Menu and CSS in ASP.Net

查看:88
本文介绍了ASP.Net中的菜单和CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我使用站点地图,菜单控件和CSS在ASP.Net中创建菜单.

链接图片:
http://nc7.upanh.com/b4.s4.d3/682d547e73ae127312f0efc06d2c8edd_35412337.help.png

菜单只能链接到当前文本中的页面,但我想在没有文本的区域中执行此操作,例如红色纠结.

请帮助我!

Hi all,
I create menu in ASP.Net using sitemap, menu control and CSS.

Link image:
http://nc7.upanh.com/b4.s4.d3/682d547e73ae127312f0efc06d2c8edd_35412337.help.png

Menu can only link to page in text present but i want to do in region has no text, example in red tangle.

Please help me!

推荐答案



我为您编写了一些代码.

Hi,

I wrote some code for your requirement.

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script language ="javascript" >
      function f1() {

          location.href = "default.aspx";


      }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      <table width="150" align="center" bgcolor="black">
        <tr>
          <td>
           <a href="Default.aspx">click here</a>
          </td>
        </tr>
          <tr>
          <td onclick="f1()">
           clickhere
          </td>
        </tr>
      </table>
    </div>
    </form>
</body>
</html>



再次检查后,希望我能达到您的期望.

最好的



once check this I hope I reached your expectation.

All the Best


感谢您的帮助,
但是您误会了,我使用站点地图在ASP.Net中创建菜单,然后通过CSS重新设计.默认的ASP.Net页面可以链接到菜单文本区域中的新页面,但我希望它可以对文本区域附近的空间区域执行此操作.请在此处查看图片以清除 http://nc7.upanh.com/b4.s4.d3/682d547e73ae127312f0efc06d2c8edd_35412337.help.png [ ].

谢谢!
Thanks for help,
But you mis-understood, i create menu in ASP.Net by using sitemap and re-design by CSS. Default ASP.Net page can link to new page in text region of menu but i want it can do that for space region in near text region. Pls see image here to clear http://nc7.upanh.com/b4.s4.d3/682d547e73ae127312f0efc06d2c8edd_35412337.help.png[^].

Thanks!


这篇关于ASP.Net中的菜单和CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆