Set CSS Border Color to text color

后端 未结 3 2028
[愿得一人]
[愿得一人] 2020-12-08 14:52

Is there a way to set the border-color in CSS to be the same as the text color?

For instance having a class which adds a bottom dotted border, but leavi

3条回答
  •  [愿得一人]
    2020-12-08 15:29

    You will have to set these to be the same color yourself.

    If you want your CSS to be more programmatic and DRY, you should use something like LESS. It can save you a lot of work, so you only have to declare that color once.

提交回复
热议问题