简体   繁体   English

我如何发现 CSS 在 Razor 视图(模型)中不起作用的原因?

[英]How can I spot why the CSS not working in Razor View (model)?

I have build an web application, and I want to delete some record in the database using ASP.NET MVC.我已经构建了一个 web 应用程序,我想使用 ASP.NET MVC 删除数据库中的一些记录。 But, in the delete Razor View, the CSS is not working, so the page is like this 1 .但是,在 delete Razor 视图中,CSS 不起作用,所以页面是这样的1 This is the Delete Page of my application 2 .这是我的应用程序2的删除页面。 I wonder if there are any solutions for this problem.我想知道是否有解决此问题的方法。 Thank you in advance.先感谢您。

Check this document describe col-sm , and as i notice the CSS classes that you have been used were marked with red, so maybe the version of bootstrap doesn't contain those classes.检查此文档 describe col-sm ,正如我注意到您使用的 CSS 类被标记为红色,所以可能引导程序的版本不包含这些类。

the reference:https://www.w3schools.com/bootstrap/bootstrap_grid_examples.asp参考:https://www.w3schools.com/bootstrap/bootstrap_grid_examples.asp

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从模型绑定Collection以查看MVC Razor - How can I bind Collection from model to view MVC Razor 如何使用模型中的自定义属性来更改剃刀视图模型中的输入元素名称属性值? - How can I change the input element name attribute value in a razor view model using a custom attribute in a model? 如何在剃刀视图中动态地将数据添加到视图模型的List属性中? - How can I dynamically add data to a List property in view model in a razor view? Asp .net Core:如何在Razor Pages的Partial View中使用模型? - Asp .net Core : How can I use a model inside a Partial View in Razor Pages? 如何在Razor视图中使用选定值(而非模型值)作为后期参数? - How can I use selected value (not model value) as Post Parameter In Razor View? 如何使用带有剃刀视图的实体框架(.edmx模型)为MVC4或MVC 5创建局部视图? - How can i create a Partial View for MVC4 or MVC 5 using Entity Framework (.edmx Model) with Razor Views? 为什么在 Razor 视图中使用 @model IQueryable&lt;&gt; - Why use @model IQueryable<> in the Razor View 如何在剃刀视图中使用数据库视图? - How can I use a view of my database in a razor view? 如果将剃刀视图引用到视图模型而不是模型,则jQuery calender无法正常工作 - Jquery calender is not working if the razor view is referenced to a view model instead of a model 我如何在Razor的部分视图中获取HTMLPREFIX - How can I get HTMLPREFIX inside the partial view i Razor
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM