html - 如何为表格制作 Angular 边框。

标签 html css

我到处搜索并找到了一些东西,但没有找到与我真正需要的东西相关的东西。

我需要这个:what I need

我现在有这个: what I have

我的问题是如何使第一个右侧边框成为一个 Angular ,如通过 CSS 所示。

现在,我正在把它做成一张 table (我知道, table 都是 2000 年代的)。

<table class="issue-finder">
  <tr>
    <td class="first-child"><a href="#">Issue<br>Finder</a></td>
    <td><a href="#">P-12<br>Education</a></td>
    <td><a href="#">Higher<br>Education</a></td>
    <td><a href="#">Workforce<br>Outcomes</a></td>
    <td><a href="#">Health &amp; Human<br>Services</a></td>
  </tr>
</table>

CSS 是:

.issue-finder {
    width: 100%;
    text-align: center;
    height: 100px;
    background-color: #c2db73;
}
.issue-finder td.first-child {
    border-right: 1px solid #000000;
}
.issue-finder td {
    width: 15%;
    border-right: 1px solid #ffffff;
}
.issue-finder a {
    text-decoration: none;
    color: #000000;
}

我应该像我在 SO 上看到的一些示例那样将其作为列表来执行还是表格可以?如果表格没问题,我将如何对其进行编码?谢谢大家!

最佳答案

尝试向您的第一个 td 添加一个类,并在该类中将 background-image 设置为您的自定义箭头。喜欢:

.issue-finder td.first-child {
    border-right: 0px;
    /*your custom image*/
    background: url(https://upload.wikimedia.org/wikipedia/commons/thumb/7/76/Fl%C3%A8che_directionnelle.png/800px-Fl%C3%A8che_directionnelle.png);
    width: 20%; /*if you want it to be taller*/
}

JSFiddle

更新

找到一个很酷的网站,只用 CSS-HTML(没有图片)来制作你想要的东西:

http://cssarrowplease.com/

关于html - 如何为表格制作 Angular 边框。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31350480/

相关文章:

html - URI 以两个斜杠开头……它们的行为如何?

javascript - Firefox 中的滚动错误

javascript - 如何使用内联背景颜色样式设置表单输入字段的样式

jquery - 如何在鼠标悬停时切换两个按钮?

php - 当评论作者与帖子作者匹配时,Wordpress 有条件地加载类

html - 防止标题换行

php - 如何在 php 中逐段读取、存储和获取数据

CSS3 FLEXBOX,左右浮动元素

jquery - 随着添加/删除更多缩略图以适应其父 DIV,缩略图的高度会动态变化

css - 将鼠标悬停在列表上时如何更改 anchor 颜色