Bootstrap 3在桌子上掉落圆角.在申请.table-bordered课程时,我应该申请哪些样式才能让他们回来,好吗?
UPDATE
到目前为止,我已经来到这个代码,没有任何效果.
从Bootstrap 2.3.2中获取的CSS:
.table-bordered
{
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.table-bordered thead:first-child tr:first-child > th:first-child, .table-bordered tbody:first-child tr:first-child > td:first-child, .table-bordered tbody:first-child tr:first-child > th:first-child
{
-webkit-border-top-left-radius: 4px;
border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
}
.table-bordered thead:last-child tr:last-child > th:first-child, .table-bordered tbody:last-child tr:last-child > td:first-child, .table-bordered tbody:last-child tr:last-child > th:first-child, .table-bordered tfoot:last-child tr:last-child > td:first-child, .table-bordered tfoot:last-child tr:last-child > th:first-child
{
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
}
Run Code Online (Sandbox Code Playgroud)
HTML代码:
<table class="table table-hover table-responsive table-bordered">
<thead> …Run Code Online (Sandbox Code Playgroud) 我有一个静态类,我需要注入一些实例.静态类可以有一个静态构造函数,但它必须是无参数的.那么,我该怎么办呢?
我不想创建一个单身人士.我希望有一个静态类,其中一个方法对应该注入的实例进行操作.贝娄是我需要的一个例子.
public static class AuthenticationHelper
{
// Fields.
private static object _lock = new object();
private static readonly UserBusiness _userBusiness; // <-- this field needs to be injected.
// Public properties.
public static User CurrentUser
{
get
{
if (IsAuthenticated)
{
User user = (User)Context.Session[SessionKeys.CURRENT_USER];
if (user == null)
{
lock (_lock)
{
if (user == null)
{
user = _userBusiness.Find(CurrentUserId);
Context.Session[SessionKeys.CURRENT_USER] = user;
}
}
}
return user;
}
return null;
}
}
public static int CurrentUserId { …Run Code Online (Sandbox Code Playgroud) 我必须像下面那样运行一个查询.它实际上更复杂,但这是重要的部分:
var results =
from b in _context.Bookings
where b.ScheduleDate.Add(b.StartTime) >= DateTime.UtcNow
select b;
Run Code Online (Sandbox Code Playgroud)
但它给出了以下错误:
LINQ to Entities无法识别方法'System.DateTime.Add方法(System.TimeSpan)',并且此方法无法转换为商店表达式.
我该如何解决这个问题?
提前致谢.