【发布时间】:2019-07-16 11:37:44
【问题描述】:
我是 Asp.net 和引导程序的新手。我在我的 html 中引用了 bootstrap.min.css 并且我有 gridview 控件,我想用“table table-striped”类设置样式。 Visual Studio intelisens 似乎无法识别 table-striped 类,并且在程序运行时它不起作用。任何想法我做错了什么? 这是我的html源代码:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NotDelivered.aspx.cs" Inherits="PapaBobs.NotDelivered" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<form id="form1" runat="server" class ="container">
<div class ="form-group">
<asp:GridView ID="notDeliveredGrid" runat="server" CssClass ="table table-hover table-striped"></asp:GridView>
</div>
</form>
<script src="Scripts/bootstrap.min.js"></script>
<script src="Scripts/jquery-3.3.1.min.js"></script>
</body>
</html>
【问题讨论】:
标签: c# css asp.net twitter-bootstrap