【发布时间】:2019-03-02 02:15:27
【问题描述】:
我正在做一个 react 项目,我在一个表中列出了一些操作(对象),一切看起来都很好,但是客户端对于我发现非常奇怪和困难的东西,它是这样的:
但这不是他想要的数据表日期的样子,他想要这样的东西:
是否有一个 CSS 属性可以使这成为可能?
任何帮助将不胜感激。
要写的代码太多了,但那些部分已经足够了:
HTML:
<div class="co-operations-contrat__date">
<span class="co-operations-contrat__date-text">04/07/2018</span>
</div>
SASS:
.co-operations-contrat {
&__date {
a {
margin-right: 5px;
display: inline-block;
cursor: pointer;
+.co-operations-contrat__date-text {
margin-left: 0;
}
}
&-text {
margin-left: 25px;
font-family: "Poppins", monospace;
}
}
}
【问题讨论】:
-
您可以简单地为这些日期使用等距字体吗?
-
你能实际添加代码吗?看看它的结构会有帮助。
-
我正在尝试编辑我的帖子。
-
考虑为日期使用等宽字体。 cssfontstack.com/monospace
标签: css