问题描述
我目前正在为某些 UI 内容(例如说明、注释、错误框等)使用虚线边框.
I am currently using a dotted border for certain UI stuff such as instructions, notes, error boxes, etc.
不过最近因为需求,换了实心边框,但就是觉得有点奇怪.
But recently I changed to a solid border, due to a requirement, but I just find it kind of strange.
似乎通过使其变得可靠,它过分强调了仅提供信息的页面元素.
It seems that by making it solid it puts too much emphasis on page elements which are just informational.
你有什么看法?
推荐答案
我认为,这里的争论点在于对比.您使用虚线边框的目的是减少与包含它的背景视觉元素的对比度.
The point of contention here, I believe, is contrast. Your motive in using a dotted border is to reduct contrast vis-a-vis the background visual element containing it.
您可以使用柔和的颜色(例如,浅色背景上的浅灰色阴影)实现相同的效果,这样它的重点就不会与使用虚线边框不同.
You can achieve the same effect using a muted color (a shade of light grey on a light-colored background, for example) so that its emphasis will not be different from using a dotted border.
如果可能,您可能还想通过使用更窄的边框宽度来规避该要求.
You might also want to circumvent the requirement by using a thinner border width, if that is possible.
顺便说一句:我们在谈论什么接口?Windows 还是网络?
BTW: What interface are we talking about? Windows or web?
这篇关于实心边框还是虚线边框?什么时候用哪个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!