- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
.table {
background: #fff;
position: relative;
bottom: 210px;
width: 90%;
border: 2px solid #fff;
border-width: 30px;
border-collapse: collapse;
}
.table-year-1 {
font-size: 22px;
width: 2%;
padding-top: 3px;
}
.table-year-2 {
width: 2%;
font-size: 22px;
padding-top: 3px;
}
.table-head-text {
font-size: 18px;
padding-bottom: 8px;
padding-top: 8px;
}
.bk{
font-size:23px;
padding-top: 15px;
padding-bottom: 15px;
}
.top-table-text{
font-size: 26px;
}
table .tr-border{
border-bottom: 1px solid #4f91d8;
}
table .tr-border-top{
border-top: 1px solid #4f91d8;
}
.spacer{
display: table-cell;
width: 3%;
}
td {
font-size: 19px;
padding: 0px 0px 0px 10px;
}
<table class="table">
<tbody>
<tr>
<td class="table-head-text top-table-text">Assets</td>
<td class="table-year-1 bold">2018</td>
<td class="spacer"> </td>
<td class="table-year-2 bold">2017</td>
</tr>
<tr>
<td>Cash & Due From Banks</td>
<td class="table-year-1">$149,753</td>
<td class="spacer"> </td>
<td class="table-year-2">$77,515</td>
</tr>
<tr>
<td>Investment Securities</td>
<td class="table-year-1">$929,432</td>
<td class="spacer"> </td>
<td class="table-year-2">$830,878</td>
</tr>
<tr>
<td>Loans (net of valuation reserve)<br />
($28,582 in 2018 & $27,063 in 2017)</td>
<td class="table-year-1">$1,902,960</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,813,062</td>
</tr>
<tr>
<td>Federal Funds Sold</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$0</td>
</tr>
<tr>
<td>Premises & Equipment</td>
<td class="table-year-1">$49,956</td>
<td class="spacer"> </td>
<td class="table-year-2">$46,666</td>
</tr>
<tr>
<td>Accured Income</td>
<td class="table-year-1">$12,652</td>
<td class="spacer"> </td>
<td class="table-year-2">$12,589</td>
</tr>
<tr>
<td>Other Assets</td>
<td class="table-year-1">$111,287</td>
<td class="spacer"> </td>
<td class="table-year-2">$102,413</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Assets</td>
<td class="table-year-1 bold line-break">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,883,123</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Liabilities &
Capital Funds</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Non-Interest Bearing Deposits</td>
<td class="table-year-1">$952,623</td>
<td class="spacer"> </td>
<td class="table-year-2">$894,075</td>
</tr>
<tr>
<td>Non-Interest Bearing Public Deposits</td>
<td class="table-year-1">$190,104</td>
<td class="spacer"> </td>
<td class="table-year-2">$179,582</td>
</tr>
<tr>
<td>Interest Bearing Deposits</td>
<td class="table-year-1">$1,344,490</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,194,226</td>
</tr>
<tr>
<td>Interest Bearing Public Deposits</td>
<td class="table-year-1">$370,094</td>
<td class="spacer"> </td>
<td class="table-year-2">$274,994</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Deposits</td>
<td class="table-year-1 bold line-break">$2,857,311</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,542,877</td>
</tr>
<tr>
<td>Other Liabilities</td>
<td class="table-year-1 line-break-2">$22,497</td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2">$22,954</td>
</tr>
<tr>
<td>Fed Funds Purchase & Other Borrowed Money</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$63,394</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Liabilities</td>
<td class="table-year-1 bold line-break">$2,879,808</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,629,225</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Capital
Accounts</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Capital Stock</td>
<td class="table-year-1">$2,500</td>
<td class="spacer"> </td>
<td class="table-year-2">$2,500</td>
</tr>
<tr>
<td>Surplus</td>
<td class="table-year-1">$100,943</td>
<td class="spacer"> </td>
<td class="table-year-2">$79,188</td>
</tr>
<tr>
<td>Undivided Profits</td>
<td class="table-year-1">$188,173</td>
<td class="spacer"> </td>
<td class="table-year-2">$177,768</td>
</tr>
<tr>
<td>Unrealized Gain <span class="loss-span">(Loss)
Securities</span></td>
<td class="table-year-1">($15,384)</td>
<td class="spacer"> </td>
<td class="table-year-2">($5,558)</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Capital Accounts</td>
<td class="table-year-1 bold line-break">$276,232</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$253,898</td>
</tr>
<tr class="tr-border">
<td class="table-head-text bk">Total Liabilities &
Capital Accounts</td>
<td class="table-year-1 bold line-break-2">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break-2">$2,883,123</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
我创建了一个在某些部分带有边框的表格。我需要将底部边框更改为白色(与蓝色和灰色部分相接的地方)。现在边框都是一种颜色。我正在尝试添加白色,所以看起来有一些分离。下图也显示了我想要得到的东西。边框是蓝色的,然后在某些部分的蓝色和灰色部分下面是白色的,以显示分离。
<table class="table">
<tbody>
<tr>
<td class="table-head-text top-table-text">Assets</td>
<td class="table-year-1 bold">2018</td>
<td class="spacer"> </td>
<td class="table-year-2 bold">2017</td>
</tr>
<tr>
<td>Cash & Due From Banks</td>
<td class="table-year-1">$149,753</td>
<td class="spacer"> </td>
<td class="table-year-2">$77,515</td>
</tr>
<tr>
<td>Investment Securities</td>
<td class="table-year-1">$929,432</td>
<td class="spacer"> </td>
<td class="table-year-2">$830,878</td>
</tr>
<tr>
<td>Loans (net of valuation reserve)<br />
($28,582 in 2018 & $27,063 in 2017)</td>
<td class="table-year-1">$1,902,960</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,813,062</td>
</tr>
<tr>
<td>Federal Funds Sold</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$0</td>
</tr>
<tr>
<td>Premises & Equipment</td>
<td class="table-year-1">$49,956</td>
<td class="spacer"> </td>
<td class="table-year-2">$46,666</td>
</tr>
<tr>
<td>Accured Income</td>
<td class="table-year-1">$12,652</td>
<td class="spacer"> </td>
<td class="table-year-2">$12,589</td>
</tr>
<tr>
<td>Other Assets</td>
<td class="table-year-1">$111,287</td>
<td class="spacer"> </td>
<td class="table-year-2">$102,413</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Assets</td>
<td class="table-year-1 bold line-break">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,883,123</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Liabilities &
Capital Funds</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Non-Interest Bearing Deposits</td>
<td class="table-year-1">$952,623</td>
<td class="spacer"> </td>
<td class="table-year-2">$894,075</td>
</tr>
<tr>
<td>Non-Interest Bearing Public Deposits</td>
<td class="table-year-1">$190,104</td>
<td class="spacer"> </td>
<td class="table-year-2">$179,582</td>
</tr>
<tr>
<td>Interest Bearing Deposits</td>
<td class="table-year-1">$1,344,490</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,194,226</td>
</tr>
<tr>
<td>Interest Bearing Public Deposits</td>
<td class="table-year-1">$370,094</td>
<td class="spacer"> </td>
<td class="table-year-2">$274,994</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Deposits</td>
<td class="table-year-1 bold line-break">$2,857,311</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,542,877</td>
</tr>
<tr>
<td>Other Liabilities</td>
<td class="table-year-1 line-break-2">$22,497</td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2">$22,954</td>
</tr>
<tr>
<td>Fed Funds Purchase & Other Borrowed Money</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$63,394</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Liabilities</td>
<td class="table-year-1 bold line-break">$2,879,808</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,629,225</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Capital
Accounts</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Capital Stock</td>
<td class="table-year-1">$2,500</td>
<td class="spacer"> </td>
<td class="table-year-2">$2,500</td>
</tr>
<tr>
<td>Surplus</td>
<td class="table-year-1">$100,943</td>
<td class="spacer"> </td>
<td class="table-year-2">$79,188</td>
</tr>
<tr>
<td>Undivided Profits</td>
<td class="table-year-1">$188,173</td>
<td class="spacer"> </td>
<td class="table-year-2">$177,768</td>
</tr>
<tr>
<td>Unrealized Gain <span class="loss-span">(Loss)
Securities</span></td>
<td class="table-year-1">($15,384)</td>
<td class="spacer"> </td>
<td class="table-year-2">($5,558)</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Capital Accounts</td>
<td class="table-year-1 bold line-break">$276,232</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$253,898</td>
</tr>
<tr class="tr-border">
<td class="table-head-text bk">Total Liabilities &
Capital Accounts</td>
<td class="table-year-1 bold line-break-2">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break-2">$2,883,123</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
最佳答案
tr 是表格行,所以边框底线将是表格的宽度。要匹配您的图像,您需要改为定位单个单元格 (td)。
看起来你很亲近。例如,将 table .tr-border
更改为 table .tr-border td
。然后您可以将规则添加到目标 table .tr-border .table-year-1
和 table .tr-border .table-year-2
生成如下内容?
.table {
background: #fff;
position: relative;
bottom: 210px;
width: 90%;
border: 2px solid #fff;
border-width: 30px;
border-collapse: collapse;
}
.table-year-1 {
font-size: 22px;
width: 2%;
padding-top: 3px;
background-color: #4f91d8;
}
.table-year-2 {
width: 2%;
font-size: 22px;
padding-top: 3px;
background-color: #CCC;
}
.table-head-text {
font-size: 18px;
padding-bottom: 8px;
padding-top: 8px;
}
.bk{
font-size:23px;
padding-top: 15px;
padding-bottom: 15px;
}
.top-table-text{
font-size: 26px;
}
table .tr-border td{
border-bottom: 1px solid #4f91d8;
}
table .tr-border .table-year-1 {
background-color: #4f91d8;
border-bottom: 1px solid #FFF;
}
table .tr-border .table-year-2 {
background-color: #CCC;
border-bottom: 1px solid #FFF;
}
.spacer{
display: table-cell;
width: 3%;
}
td {
font-size: 19px;
padding: 0px 0px 0px 10px;
}
<table class="table">
<tbody>
<tr>
<td class="table-head-text top-table-text">Assets</td>
<td class="table-year-1 bold">2018</td>
<td class="spacer"> </td>
<td class="table-year-2 bold">2017</td>
</tr>
<tr>
<td>Cash & Due From Banks</td>
<td class="table-year-1">$149,753</td>
<td class="spacer"> </td>
<td class="table-year-2">$77,515</td>
</tr>
<tr>
<td>Investment Securities</td>
<td class="table-year-1">$929,432</td>
<td class="spacer"> </td>
<td class="table-year-2">$830,878</td>
</tr>
<tr>
<td>Loans (net of valuation reserve)<br />
($28,582 in 2018 & $27,063 in 2017)</td>
<td class="table-year-1">$1,902,960</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,813,062</td>
</tr>
<tr>
<td>Federal Funds Sold</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$0</td>
</tr>
<tr>
<td>Premises & Equipment</td>
<td class="table-year-1">$49,956</td>
<td class="spacer"> </td>
<td class="table-year-2">$46,666</td>
</tr>
<tr>
<td>Accured Income</td>
<td class="table-year-1">$12,652</td>
<td class="spacer"> </td>
<td class="table-year-2">$12,589</td>
</tr>
<tr>
<td>Other Assets</td>
<td class="table-year-1">$111,287</td>
<td class="spacer"> </td>
<td class="table-year-2">$102,413</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Assets</td>
<td class="table-year-1 bold line-break">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,883,123</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Liabilities &
Capital Funds</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Non-Interest Bearing Deposits</td>
<td class="table-year-1">$952,623</td>
<td class="spacer"> </td>
<td class="table-year-2">$894,075</td>
</tr>
<tr>
<td>Non-Interest Bearing Public Deposits</td>
<td class="table-year-1">$190,104</td>
<td class="spacer"> </td>
<td class="table-year-2">$179,582</td>
</tr>
<tr>
<td>Interest Bearing Deposits</td>
<td class="table-year-1">$1,344,490</td>
<td class="spacer"> </td>
<td class="table-year-2">$1,194,226</td>
</tr>
<tr>
<td>Interest Bearing Public Deposits</td>
<td class="table-year-1">$370,094</td>
<td class="spacer"> </td>
<td class="table-year-2">$274,994</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Deposits</td>
<td class="table-year-1 bold line-break">$2,857,311</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,542,877</td>
</tr>
<tr>
<td>Other Liabilities</td>
<td class="table-year-1 line-break-2">$22,497</td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2">$22,954</td>
</tr>
<tr>
<td>Fed Funds Purchase & Other Borrowed Money</td>
<td class="table-year-1">$0</td>
<td class="spacer"> </td>
<td class="table-year-2">$63,394</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Liabilities</td>
<td class="table-year-1 bold line-break">$2,879,808</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$2,629,225</td>
</tr>
<tr>
<td class="table-head-text top-table-text">Capital
Accounts</td>
<td class="table-year-1 line-break-2"> </td>
<td class="spacer"> </td>
<td class="table-year-2 line-break-2"> </td>
</tr>
<tr>
<td>Capital Stock</td>
<td class="table-year-1">$2,500</td>
<td class="spacer"> </td>
<td class="table-year-2">$2,500</td>
</tr>
<tr>
<td>Surplus</td>
<td class="table-year-1">$100,943</td>
<td class="spacer"> </td>
<td class="table-year-2">$79,188</td>
</tr>
<tr>
<td>Undivided Profits</td>
<td class="table-year-1">$188,173</td>
<td class="spacer"> </td>
<td class="table-year-2">$177,768</td>
</tr>
<tr>
<td>Unrealized Gain <span class="loss-span">(Loss)
Securities</span></td>
<td class="table-year-1">($15,384)</td>
<td class="spacer"> </td>
<td class="table-year-2">($5,558)</td>
</tr>
<tr class="tr-border">
<td class="table-head-text">Total Capital Accounts</td>
<td class="table-year-1 bold line-break">$276,232</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break">$253,898</td>
</tr>
<tr class="tr-border">
<td class="table-head-text bk">Total Liabilities &
Capital Accounts</td>
<td class="table-year-1 bold line-break-2">$3,156,040</td>
<td class="spacer"> </td>
<td class="table-year-2 bold line-break-2">$2,883,123</td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</tbody>
关于html - 如何将表格中的部分边框更改为不同的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55922059/
我的文本字段需要一个边框,如下图所示。我该怎么做? 最佳答案 试试这些..我希望它能帮助... UITextField *txt=[[UITextField alloc]initWithFrame:C
我尝试通过“GradientDrawable”改变颜色“描边”,但不起作用。 另外,我不知道如何获取 id stroke,并且只更改笔划(我看到 google,所有示例都失败了) 我的 XML 项目
有没有办法如何使用css(理想)来绘制元素边框但只是线条的一部分(在左右边框下方的图像中)? 最佳答案 是的,你可以,像这样,甚至 IE8 也可以这样做: div { position: re
我一直致力于自定义 GUI 框架,因为我无法处理需要通过标记 (XAML) 开发 UI 的托管废话或 native 代码。我正在尝试创建一个使用该 GUI 框架的应用程序原型(prototype),但
以下Microsoft example code包含以下内容: ... ... ... 但是,在运行时,此代码会生成以下数据绑定(bind)
所以基本上我在tex文件的顶部有这样的内容: \setbeamertemplate{footline}{Number \insertframenumber} 这会将“Number ”应用于所有帧的页脚
我不明白为什么我的 HBox 周围没有边框?现在什么也没有发生,除了 eclipse 抛出 IllegalArgumentException 之外,因为我猜是 this.setCenter(hbox)
我正在尝试使用 Colorbox,以便它在加载时打开并提醒访问者 session 注册已开放。我在 Javascript Coder 找到了我正在使用的代码。 我无法让“X”关闭Colorbox来显示
我制作了一个自定义面板,类似于 WrapPanel 但带有列(或类似于 Grid 但项目自动定位在网格中)。 这是它的样子: 我想在我的面板上有一个属性,它在每一列之间划一条线。是否可以在自定义面板上
我正在尝试为我的页面制作边框,但我没有这样做..我的代码是 @drawable/custom_border 我的问题是,黑色设置为整个 View (作为背景),我想要黑色边框而不是黑色背景
我目前正在开发一个小游戏,但我无法让圆圈正确击中左侧和顶部 Canvas 边框。它正确地击中了右侧和底部。 圆可以用 W A S D 移动,并且必须正确地碰到 Canvas 的所有边界 这是代码:ht
我有一个像这样的图像 slider :
如何绘制具有透明度的png图像轮廓(边框)。 就像我们有这张图片: 我们想要这个: 我正在通过 HTML5 创建图像阴影,但无法获得我想要的。我想使用 HTML5 或 jquery 或两者来绘制它,如
在我们的主页上,我们有几个元素作为菜单点。(图片+标题+小说明)。问题是当鼠标悬停时,菜单元素总是有边框。 (即使我隐藏边框)。 你可以看看:www.scf-software.com 图片问题: im
我对 HTML 和 CSS 完全陌生,所以我希望有人能给我指出正确的方向。我试图理解本教程以制作视差滚动网站: http://ihatetomatoes.net/simple-parallax-scr
如何使底部边框正好位于文本框下方? div { border-bottom: solid 2px #354458; } p { color: #ffffff; background-col
本质上,我想应用一个 bottom-border,但我不希望它位于单元格的底部,而是位于死 Angular 。 如何仅使用 CSS 和 HTML(并且不使用图形)做到这一点? 假设单元格/行的高度为
我有一个带有线性渐变的 block (div)。有没有可能让右上角切出一个三 Angular 形? 例如,你有 border-radius 5px 来制作一个圆 Angular 的 block 。但是
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 6 年前。 Improve this qu
我想按照下面的设计图实现下拉按钮。查看下拉菜单在按钮中间后开始。我的问题是按钮具有透明背景以利用根父 div 中的背景图像。 到目前为止,我已经实现了下图。正如我上面所说,我想在 border-rad
我是一名优秀的程序员,十分优秀!