Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
textarea采用html 样式,font-family: monospace;如果我想要一致的外观,我也将其应用于我的文本输入。 对我来说,它看起来不错。但问题是它是否“正确”? 因为在网络上通常使用一些无衬线字体进行演示(=屏幕上的样式)。 这个等宽字体实际上有这些类似于serif的小字母末端,这更适合打印(=>在纸上更好)。 所以回到我的问题: 是使用等宽在这种情况下按照Web的惯例还是有错误?我的意思是在这种情况下好用的东西?
font-family: monospace;
“好”是你想要的任何东西。想两件事:
没有正确或错误的答案 - 除了“它取决于”。