如何在ASP.NET mvc5中的inspect中找到应用程序中的相关代码位置 [英] How do I find related code location in application which is found in inspect in ASP.NET mvc5

查看:95
本文介绍了如何在ASP.NET mvc5中的inspect中找到应用程序中的相关代码位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

引用:

我不知道这个css来自哪里

i do not know from where this css is coming



i想申请表单控件,但它没有应用,我在浏览器中看到了标记,但我没有在我的代码中应用这些样式,然后我如何在项目中找到这些标记位置。



我尝试过:



是我的cshtml


i want to apply form control but it's not applied and i saw markup in inspect in browser but i did not apply those styles in my code then how i found those markup location in project.

What I have tried:

is my cshtml

<div class="col-sm-3">
            Select LunchOut Time:<input type="text" id="lunchouttimepicker" class="form-control" data-format="HH:mm" data-template="HH : mm" name="datetime">
        </div>



我的javascript


my javascript

$('#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...

推荐答案

('#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.


这篇关于如何在ASP.NET mvc5中的inspect中找到应用程序中的相关代码位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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