如何在asp.net中使用jquery使用手风琴,包括css样式表 [英] how to use accordion using jquery in asp.net including css stylesheet

查看:81
本文介绍了如何在asp.net中使用jquery使用手风琴,包括css样式表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个jquery代码,所以请发送给我jquery

解决方案

这里我们回答成员在编程时遇到的具体问题。



我们无法处理整个源代码。你需要自己做。

如果你在编码时遇到任何困难,请随时回到这里并提出另一个问题来描述这个场景。



会员很乐意为您提供帮助。



Happy Coding。 :)


首先如果你使用的是AS.NET(C#/ VB),在bundle.cofig文件中捆绑了Jquery UI

 bundles.Add( new  StyleBundle( 〜/ Content / themes / base / css)。包含(
〜 /Content/themes/base/jquery.ui.core.css
〜 /Content/themes/base/jquery.ui.resizable.css
〜 /Content/themes/base/jquery.ui.selectable.css
〜/ Content / themes / base / jquery.ui.accordion.css
〜/内容/主题/碱/ jquery.ui.autocomplete.css
〜/ Content / themes / base / jquery.ui.button.css
〜/ Content / themes / base / jquery.ui.dialog.css
〜/ Content / themes / base / jquery.ui.slider.css
〜/ Content / themes / base / jquery.ui.tabs.css
〜/ Content / themes / base / jquery.ui.datepicker.css
〜/ Content / themes / base / jquery.ui.progressbar.css
〜/ Content / themes / base / jquery.ui.them e.css));
}

因此,在您的视图页面中添加顶部的引用,因为css引用首选放在顶部。

 @ Styles.Render(〜/ Content / css)

//样式参考

拿一个div标签给它一个id为acordian



然后在脚本标签中写下你的acordian代码。

 


' #acordian')。acordian()





希望这会有所帮助。

快乐编码SD's :)


i want a jquery code so pls send me jquery

解决方案

Here we answer specific questions which members face during programming.

We can't work on the whole source code. You need to do that yourself.
If you face any difficulty while coding, feel free to come back here and ask another question with specific issue describing the scenario.

Members will be happy to help you then.

Happy Coding. :)


First of all if you are using AS.NET (C#/VB),in the bundle.cofig file the Jquery UI are bundled

bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
                      "~/Content/themes/base/jquery.ui.core.css",
                      "~/Content/themes/base/jquery.ui.resizable.css",
                      "~/Content/themes/base/jquery.ui.selectable.css",
                      "~/Content/themes/base/jquery.ui.accordion.css",
                      "~/Content/themes/base/jquery.ui.autocomplete.css",
                      "~/Content/themes/base/jquery.ui.button.css",
                      "~/Content/themes/base/jquery.ui.dialog.css",
                      "~/Content/themes/base/jquery.ui.slider.css",
                      "~/Content/themes/base/jquery.ui.tabs.css",
                      "~/Content/themes/base/jquery.ui.datepicker.css",
                      "~/Content/themes/base/jquery.ui.progressbar.css",
                      "~/Content/themes/base/jquery.ui.theme.css"));
      }

So in your view page add the reference at the top as the css reference is preferred to be placed at top.

@Styles.Render("~/Content/css")

//style reference

Take a div tag give it an id as "acordian"


and then write your code for the acordian in the script tag.


('#acordian').acordian()



Hope this helps .
Happy coding SD's :)


这篇关于如何在asp.net中使用jquery使用手风琴,包括css样式表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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