博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Adaptability Is Accessibility
阅读量:7113 次
发布时间:2019-06-28

本文共 1982 字,大约阅读时间需要 6 分钟。

Web Design Should Be Flexibility, to achieve this, you should:

1. Think from function

Design from the services which you will provide to the users

2. Separate the content and its appearance

· If the italic is for emphasis, using <em> instead of <i>

· Don’t use HTML for presentation

That is: do not use <font> <i> <b> (Where HTML provides an appropriate element, use it. Where it doesn’t, use classes.)

· Using style sheet for presentational information

3. Use style sheet properly

Style sheet is to suggest the appearance of a page, not to control the appearance of a page, and don't rely on style sheet to convey information. Then your pages will “work” fine in any browser, past or future. Browsers which don’t support style sheets simply present pages that look a little on the plain side.

Above all, don’t rely on any aspect of style sheets to work in order for a page to be accessible. Absolute units, like pixels and points are to be avoided, and colour needs to be used carefully, and never relied on.

4. Some pros and cons in style sheet to achieve adaptability:

· Fonts

For font-family, suggest a number of fonts, and cover as many bases as possible. But don’t rely on a font being available regardless of how common it is. In case different systems or devices have different default fonts and few of them overlap.

For font-size, avoid absolute unit, for instead, use relative units like if the body size use em, headings or other things can use proportional sizes like 30% bigger than the body size. In case different systems and devices have different screen resolutions.

· Layout

Margin, page width, indentation etc. should use proportional sizes too. For example: margin can be percentage of the element width which contains them or base on user's font size. E.g. p{ margin: 1.5em;}

· Colour

Use style sheet and avoid convey meanings by only using colour in case people who are red or green blindness.

Original article:

 

转载于:https://www.cnblogs.com/Bragi/p/RNotes1.html

你可能感兴趣的文章
Sqoop架构(四)
查看>>
【转】Xcode托管代码到oschina中的教程
查看>>
QTP的那些事 -– Visual Relation Identifier Feature: How to use in the real world
查看>>
一步一步教你使用AgileEAS.NET基础类库进行应用开发-基础篇-演示ORM中的查询
查看>>
win7远程登录
查看>>
5.6. DHCP
查看>>
RDIFramework.NET ━ .NET快速信息化系统开发框架 V3.2->Web版本模块管理界面新增模块排序功能...
查看>>
ajax与算法,sql的group处理
查看>>
《C#高级编程》笔记系列--点滴记录(持续更新中……)
查看>>
采用泳道图工具跟踪项目进度或者问题解决进度
查看>>
sql server 2008学习1–系统数据库
查看>>
找零钱的两种方法
查看>>
DM642图像处理程序的主要结构
查看>>
从微软的DBML文件中我们能学到什么(它告诉了我们什么是微软的重中之重)~三 分部类是否破坏了单一职责...
查看>>
redis的主从配置 扩容
查看>>
HDU1004 Let the Balloon Rise
查看>>
jquery 校验中国身份证号码
查看>>
PicPopupWindow的使用
查看>>
Java同样的汉字在服务器和本地的电脑上URLencode 出来的结果不一致
查看>>
node-webkit学习(4)Native UI API 之window
查看>>