且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在ASP.NET mvc5中的inspect中找到应用程序中的相关代码位置

更新时间:2023-02-24 23:38:11

('#intimetimepicker,#luchintimepicker,#lunchouttimepicker,#outtimetimepicker')。combodate({
firstItem:'name' ,//在下拉列表的第一项显示'小时'和'分钟'字符串
minuteStep:1
});
('#intimetimepicker,#luchintimepicker,#lunchouttimepicker,#outtimetimepicker').combodate({ firstItem: 'name', //show 'hour' and 'minute' string at first item of dropdown minuteStep: 1 });





如何在我的应用程序中找到标记的特定位置以便更改...

请帮忙...



how can i found pirticular location of markup in my application to change..
please help...


i do not know from where this css is coming





我假设你问你的CSS文件在哪里?无论你把它们放在哪里。



可以肯定的是,进入你的MVC项目,找到App_Start文件夹,找到BundleConfig.cs,你应该看到它的位置所有的javascript和CSS文件及其引用的位置。



例如,这是我在CSS文件的MVC项目中拥有的一个包





I'm assuming your asking where are your CSS files located? It is wherever you put them.

To be sure, go into your MVC project, look for App_Start folder, find BundleConfig.cs and there you should see the location of all javascript and CSS files and their referenced locations.

For example, this is one of the bundles i have in my MVC project for CSS files

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"));





因此我的CSS文件的位置是从我的MVC项目开始,在Content / themes / base /文件夹中。



如果您需要从浏览器知道CSS用于特定元素的位置,请了解如何使用inspect元素(简单的谷歌搜索如何在<在此处插入您的浏览器名称中使用inspect元素)或者在整个项目中简单搜索CSS元素。



So the location of my CSS for those files are, starting from my MVC project, in the Content/themes/base/ folder.

If you need to know, from the browser, where the CSS is for a specific element, either learn how to use inspect element (simple google search of "how to use inspect element in <insert your browser name here") or do a simple search for your CSS element in your entire project.