css美观文本框

Text is an important, if not the most important element in a design. It conveys the information that the user needs. How can we make sure the text in our design is readable and accessible? How to select the right type?

文本是设计中的重要元素,即使不是最重要的元素。 它传达用户需要的信息。 我们如何确保设计中的文本可读易读? 如何选择正确的类型?

Ok, let’s start with the basics: What is typography?

好,让我们从基础开始: 什么是排版?

Typography describes the arrangement of type to make written language legible, readable and appealing. The arrangement of the type includes the selection of fonts, the font size, line lengths, line-spacing, letter-spacing and kerning.

印刷术描述字体的排列方式,以使书面语言清晰,可读和吸引人。 类型的安排包括字体的选择,字体大小,行长,行间距,字母间距和字距。

版式要素 (Elements of typography)

Typeface and fontA typeface is a design of type, while the font is the variation in a particular size and weight (such as extra bold, bold, regular, light, italic, condensed, extended).

字体和字体字体是一种类型的设计,而字体是特定大小和粗细的变体(例如,额外的粗体,粗体,常规,浅色,斜体,压缩,扩展)。

Mean lineThe mean line indicates the top of a character’s body (or the top of the x-height).

中间线中间线指示角色身体的顶部(或x高度的顶部)。

BaselineThe baseline is the line on which most of the letters are placed.

基准线基准线是放置大多数字母的线。

Mean line and baseline
平均线和基线

x-HeightThe distance between the baseline and the top of the lower-case letters is called x-Height.

x-Height基线与小写字母顶部之间的距离称为x-Height。

x-height
X高度

KerningKerning adjusts the spacing between individual letters to achieve a visually appealing result.

字距调整字距调整可调整各个字母之间的间距,从而获得视觉上吸引人的效果。

Kerning
紧缩

TrackingTracking, or letter-spacing, is the consistent adjustment of the optical distance between letters.

跟踪跟踪或字母间距是对字母之间的光学距离的一致调整。

Tracking or letter-spacing
跟踪或字母间距

LeadingLeading (or line-height) is the spacing between two lines of text. Well-designed leading makes the text more legible because it helps the eye to go from one text line to the next one. The standard leading is 120% the point size of the font, but it can vary according to the typeface.

Leading Leading(或行高)是两行文本之间的间距。 精心设计的引线使文字更清晰易读,因为它可以帮助眼睛从一个文字行转到下一个文字行。 标准的前导是字体的磅值的120%,但是它可以根据字体变化。

Leading or line-height
行距或行高

Negative spaceIn typography, negative space describes the area between individual text elements e.g. paragraphs or different sections of text. When used well, the negative space can greatly improve the readability of the copy.

负空格在排版中,负空格表示各个文本元素(例如,段落或文本的不同部分)之间的区域。 如果使用得当,负空间可以极大地提高副本的可读性。

Create better readability with negative space.
负数空格可提高可读性。

不同的字体分类 (The different typeface classifications)

SerifSerif typefaces are often used for printed materials, but they can also be used for digital products.

线线字体通常用于印刷材料,但也可以用于数字产品。

This typeface can be used for body text and headlines.

该字体可用于正文和标题。

Serif typeface
衬线字体

Sans SerifSans serif typefaces have good readability on displays, especially on low-resolution screens.

Sans Serif Sans Serif字体在显示器上,特别是在低分辨率屏幕上,具有很好的可读性。

Sans Serif can be used for body text and headlines.

Sans Serif可用于正文和标题。

Sans serif typeface
无衬线字体

MonospaceEvery character has the same width. Often used in programming.

等宽字符每个字符具有相同的宽度。 常用于编程。

For body text, it’s not ideal (besides code), but it can be used for headlines.

对于正文,它不是理想的代码(除了代码),但可以用作标题。

Monospace typeface
等宽字体

DisplayDisplay types are made for type at large sizes. Most effect typefaces are display types.

显示显示类型适用于大尺寸的类型。 大多数效果字体是显示类型。

Shouldn’t be used for body text, but can be used for headlines (It’s very important to pay attention to the legibility).

不应用于正文,而可以用作标题(注意可读性非常重要)。

Display typeface
显示字体

ScriptScript typefaces mimic calligraphy or handwriting.

脚本脚本字体模仿书法或手写体。

Shouldn’t be used for body text, but can be used for headlines (Same like for Display typefaces, it’s very important to pay attention to the legibility).

不应用于正文,而可以用于标题(与Display字体相同,请务必注意易读性)。

Script typeface
脚本字体

Cameron Chapman from Toptal created a very helpful overview of the different typeface classifications:https://www.toptal.com/designers/typography/typeface-classification

Toptal的Cameron Chapman创建了非常有用的不同字体分类概述: https ://www.toptal.com/designers/typography/typeface-classification

最佳实践 (Best practices)

Let’s take a glance at the bigger brands. What kind of typography are they using?

让我们看一下更大的品牌。 他们使用哪种字体?

Airbnb

爱彼迎

font-family: Circular字体家族:圆形

Uber

优步

font-family: UberMove字体家族: UberMove

Dropbox

投寄箱

font-family: SharpGroteskWide字体家族: SharpGroteskWide

Evernote

印象笔记

font-family: Soleil字体家族: Soleil

Intercom

对讲机

font-family Graphik字体家族 Graphik

Spotify

Spotify

font-family: Circular字体家族:圆形

Basecamp

大本营

font-family: Graphik字体家族: Graphik

Slack

松弛

font-family: Slack-Larsseit字体家族: Slack-Larsseit

They all use sans serif, either geometric or humanistic style. Some brands like Basecamp and Intercom or Airbnb and Spotify use the same typeface, but a different variation. Every typeface has very good readability. They use a bolder variation of the typeface for their headlines to ensure a good contrast to subheadlines and body text.

它们都使用无衬线字体,无论是几何风格还是人文风格。 一些品牌(如Basecamp和Intercom或Airbnb和Spotify)使用相同的字体,但使用不同的字体。 每个字体都有很好的可读性。 他们在标题上使用了较粗体的字体,以确保与副标题和正文的良好对比。

有关在用户界面中更好地排版的一些准则 (Some guidelines for better typography in user interfaces)

Keep the number of used fonts at a minimumUsing more than 3 different fonts makes a website look unstructured and unprofessional.

保持使用的字体数量最少使用三种以上的不同字体会使网站看起来结构混乱且不专业。

Good contrast and the choice of the right color is very important for legibility and perception.A contrast that is too low harms the legibility of the text. A contrast that is too high is also not good. The right balance must be found here.

良好的对比度和正确的颜色选择对于提高可读性和感知力非常重要。 太低的对比度会损害文本的可读性。 对比度太高也不好。 必须在此处找到正确的平衡。

Make sure your text and highlighted elements are recognizable for colorblind people, too. An example: If you use grey text and highlighted text in red, they may see no difference.

确保色盲人也可以识别您的文本和突出显示的元素。 例如:如果您使用灰色文本和红色突出显示的文本,则它们可能没有区别。

Use as few colors as possible for your content (less than 3).Text that is too strongly designed can be misunderstood or viewed as a different element (as advertising or something similar). Also be careful with the color blue, because blue is often used for links.

为您的内容使用尽可能少的颜色(少于3种)。 设计过于严格的文本可能会被误解或被视为不同的元素(如广告或类似内容)。 也要注意蓝色,因为蓝色通常用于链接。

Sans serif fonts are better for text on screens than serifs (which are better for print).Sans serif typefaces are often the best choice for digital devices, but these are rules of thumbs and no laws. There are great serif fonts that are also suitable for body text.

与衬线(较适合打印)相比,Sans Serif字体更适合屏幕上的文本。 无衬线字体通常是数字设备的最佳选择,但这是经验法则,没有法律规定。 有很棒的衬线字体,也适合于正文。

Pay attention to your line spaceFor your line space aim for about 140%-180% of the text size for optimal legibility.

注意您的行距为了获得最佳的可读性,行距的目标是文本大小的140%-180%。

Reduce the length of your textIf you have long text lines, it can confuse the eye, so limit your line length to 70–80 characters.

减少文本的长度如果文本行太长,可能会使眼睛感到困惑,因此请将行长限制为70-80个字符。

Small text needs more spacingThe smaller fonts are more difficult to read and so the letters need more space to be better recognizable.

小文本需要更大的间距小字体更难以阅读,因此字母需要更多空间才能更好地识别。

Content should always use mixed capitalization.The user will have difficulties with reading the content if all the text is upper or lower case.

内容应始终使用大小写混合。 如果所有文本均为大写或小写,用户将难以阅读内容。

Pay attention to your character spacingIs it too wide or too narrow, it will affect the legibility of the text.

注意您的字符间距太宽还是太窄,都会影响文本的可读性。

Create a good hierarchy for your text elementsStarting with the base size of your body text, you define the typographic scale for all other text elements (headings, subheadings and so on). A nice tool for that could be https://type-scale.com/.

为文本元素创建良好的层次结构从主体文本的基本大小开始,为所有其他文本元素(标题,副标题等)定义印刷比例。 一个不错的工具可以是https://type-scale.com/ 。

Like most elements in digital products, the functionality should be recognizable, interactions simple and the experience user-friendly and pleasant. Text that is difficult to read will harm the customer experience, so make sure to do it right.

像数字产品中的大多数元素一样,功能应该是可识别的,简单的交互以及用户友好和愉快的体验。 难以阅读的文字会损害客户体验,因此请确保正确执行。

Three criteria should be considered when choosing the typeface for your product:

选择产品的字体时,应考虑三个标准:

易读性 (Legibility)

Individual letters and punctuation marks should be recognizable.This is where the elements of kerning and line spacing come into play.

各个字母和标点符号应该是可识别的。 这是字距调整和行距元素起作用的地方。

可读性 (Readability)

The overall picture of the text is important here. Is it possible to read the text without a struggle?

文字的整体图片在这里很重要。 是否可以毫不费力地阅读文本?

多功能性 (Versatility)

A visual hierarchy on your website is essential. Make sure your chosen typeface will have different font weights and styles.

网站上的视觉层次结构至关重要。 确保您选择的字体具有不同的字体粗细和样式。

All of that are guidelines, no rules. It doesn’t mean you have to use sans serif and geometric fonts only in your next project. Medium is using a serif typeface, and as you can see it works great. The type should match the brand or product. If the user doesn’t think much about the typography at all and simply has a pleasant reading experience, then you’ve done everything right. ;)

所有这些都是准则,没有规则。 这并不意味着您只需要在下一个项目中使用无衬线和几何字体。 Medium使用衬线字体,如您所见,它的效果很好。 类型应与品牌或产品相匹配。 如果用户根本不考虑版式,只是拥有愉快的阅读体验,那么您就做对了所有事情。 ;)

翻译自: https://uxdesign.cc/how-to-use-type-for-aesthetic-and-user-friendly-text-df4f8f21c4b2

css美观文本框


http://www.taodudu.cc/news/show-2770956.html

相关文章:

  • 书架html5,基于HTML5 Canvas的CSG构造实体几何书架
  • OpenGL入门学习[二] 绘制简单的几何图形
  • Jsp显示应用外服务器的图片,jsp显示服务器的绝对路径图片
  • 学术-几何:黑森错觉
  • 几何画板常见问题解决方案
  • 汉字的几何中心
  • ORACLE 仿照原表建表语法
  • flutter 仿照 uiswitch
  • flutter 仿照智行app 首页
  • 仿照京东导航条html+css
  • 仿照微信写的uni-app项目
  • Vc++ - qt - 仿照微信聊天窗口 - demov.1.0 初步展示
  • 仿照下拉菜单的案例
  • 仿照源码,手写一个自定义 Spring MVC 框架
  • 封装自己的js库(二)---仿照JQuery
  • 前端小白Day6-仿照百度制作登录界面
  • 仿照vue实现双向数据绑定兼容IE6
  • 安卓仿照微信
  • Java实践(五)仿照用户列表查询写查自己的库
  • 仿照三元组的抽象数据类型分别写出抽象数据类型复数和有理数的定义
  • 仿照Windows的计算器,编写一个简易的计算器程序,实现加、减、乘、除等运算。
  • WPF 方块按钮 仿照360
  • Linux C 网络编程 仿照网盘的功能
  • 抽象数据类型的三元组C语言,试仿照三元组的抽象数据类型分别写出数据类型复数和有理数的定义?...
  • 第一个安卓应用小程序--浅浅仿照微信发现界面
  • 用HTML编写携程旅行,StaticHtmlPage(仿照携程写的静态网页)
  • js仿照 蚂蚁森林 效果
  • C++仿照标准字符串类string,设计一个自己的字符串类String
  • 仿照Kafka,从零开始自实现 MQ
  • 仿照elementUI编写自己的表单组件

css美观文本框_如何为美观和用户友好的文本使用类型相关推荐

  1. java如何创建一个文本框_如何创建绑定到对象的文本框

    我使用Entity Framework为我的类生成我的控制器和视图 . 这就是我所拥有的: DemandeController.cs (控制器): public ActionResult Create ...

  2. uniapp光标自动定义到文本框_如何在Mac上的照片应用中创建自定义日历

    我花了很多时间为我最好的朋友考虑一份甜蜜的礼物.当我陷入沉思时,我想到了在Mac上使用"照片"应用制作自定义日历的想法.告诉你什么:我的朋友真的很喜欢个性化的日历,上面装饰着令人难 ...

  3. 表单如何添加大的文本框_在 Flutter 中进行文本框的创建和设定

    文本框作为一个接收用户输入的组件,被广泛应用于表单构建.即时通讯.搜索等场景中. Flutter 提供了两个开箱即用的文本框组件:TextField 和 TextFormField. 1. 文本框 T ...

  4. uniapp光标自动定义到文本框_特检自动化行吊静力检测方案

    主要测量功能使用徕卡测量开发的Windows版数据传输软件,通过蓝牙连接徕卡DISTO,经过简单的测量周期设置,即可实现自动化的距离检测.测量数据还可以输出Excel,甚至可以实时发送至PC运行的第三 ...

  5. html5简介的文本框,HTML5实战与剖析之表单——文本框脚本

    文本框类型 在编写表单相关的东西的时候,通常有两个标签标示文本框:一种是单行文本框input标签,另一种是多行文本框textarea标签.这两种标签比较相似,但是他们也有区别. 如果一定要用input ...

  6. python作业.创建两个文本框,一个按钮。第 1 个文本框绑定任意键事件,敲击键盘任意可显示字符,在交互窗口中显示该字符;第 2 个文本框绑定<a>键事件,敲击键盘 a 字符,在交互窗口中显示 10

    """ 创建两个文本框,一个按钮. 第 1 个文本框绑定任意键事件,敲击键盘任意可显示字符,在交互窗口中显示该字符: 第 2 个文本框绑定<a>键事件,敲击键 ...

  7. 创建两个文本框,一个按钮。第 1 个文本框绑定任意键事件,敲击键盘任意可显示字符,在交互窗口中显示该字符;

    创建两个文本框,一个按钮.第 1 个文本框绑定任意键事件,敲击键盘任意可显示字符,在交互窗口中显示该字符:第 2 个文本框绑定键事件,敲击键盘 a 字符,在交互窗口中显示 10 个'a'字符:按钮绑定 ...

  8. ajax 文本框 搜索,搜索不工作在ajax一旦文本框onblur事件被调用

    我有以下代码通过AJAX搜索.现在,如果我将onblur事件应用于文本框(以便搜索结果消失)并再次返回文本框,搜索工具就不再起作用.所以事情是,一旦调用onblur事件,它可能无法正确地调用onfoc ...

  9. 在html中怎么在按回车的时候换到下一个文本框_史上最全的HTML、CSS知识点总结,浅显易懂。适合入门新手...

    一,html+css基础 1-1 Html和CSS的关系 学习web前端开发基础技术需要掌握:HTML.CSS.JavaScript语言.下面我们就来了解下这三门技术都是用来实现什么的: 1. HTM ...

最新文章

  1. Linux 用户和用户组配置说明
  2. Use Excel Pivot Table as a BI tool
  3. 分布式工具的一次小升级⏫
  4. 机器学习基石作业一中的PLA和POCKET_PLA实现
  5. 有多少漏洞都会重来:从ElasticSearch到MongoDB和Redis
  6. xinit启动X Window System过程初探(转)
  7. UVA 1324 The Largest Clique 最大团(强连通分量,变形)
  8. dev 命令行参数调用_在Linux系统上使用简单命令行创建高强度的预共享密钥
  9. android pickerview 多行,Android PickerView实现三级联动效果
  10. 模拟京东商城登陆HttpRequest
  11. 【知识积累】Edge vs Fog Computing 边缘计算和雾计算的相同与不同
  12. 如何让图片变得更清晰(汇总中)
  13. Java后台获取USB二维码扫描枪内容(Java监听系统键盘操作)
  14. 分享 | 带来全新交互体验的『支付宝AR』技术大解密
  15. 微软java虚拟机下载_微软Java虚拟机下载-Microsoft VM(Java虚拟机)5.0.3805最新版 - 维维软件园...
  16. WPS内嵌图片怎样使用Java获取图片?
  17. 《2022中国企业数字化办公创新与实践产业研究报告》附下载丨三叠云
  18. 【干货】1.5W+字的全链路前端性能优化送给你
  19. 【图片素材】小程序图片
  20. Docx 生成word文档

热门文章

  1. Balsamiq mockups
  2. matlab如何计算矩阵的幂,MATLAB矩阵幂算法
  3. ZZULIOJ.1102: 火车票退票费计算(函数专题)
  4. 网络爬虫Matplotlib
  5. 3D打印机可以打印什么?
  6. Nginx反向代理,返回405错误的解决办法
  7. 拼团小程序源码_拼团软件微信拼团小程序拼团卖水果、让您快速引流
  8. 计算机二级web知识点,计算机二级WEB考试主要考哪些内容?
  9. 可喜可贺,暴雪即将收购第一家工作室Proletariat,魔法吃鸡停运
  10. python输入中文教程_如何用Python从头开始实现一个中文拼音输入法?