计算机与现代化

• 网络与通信 • 上一篇    下一篇

基于CSS+DIV的自适应宽度网页布局方法

  

  1. 1.海南经贸职业技术学院,海南海口571127;2.海口经济学院,海南海口571127
  • 收稿日期:2014-03-18 出版日期:2014-06-13 发布日期:2014-06-25
  • 作者简介: 黄雪琴(1981-),女,海南临高人,海南经贸职业技术学院讲师,电子商务设计师,硕士,研究方向:电子商务技术; 耿强(1981-),男,湖北荆门人,海口经济学院副教授,网络 工程师,硕士,研究方向:计算机网络技术和应用软件开发; 陈显军(1981-),男,海南海口人,副教授,系统分析师,硕士,研究方向:计算机图形学,虚拟现实。
  • 基金资助:
     2013年海南省自然科学基金资助项目(613169); 2013年海南省教育厅高等学校科学研究项目(Hjkj2013-48); 2013年海南省教育厅教育科学规划资助项目(QJY125050);
    2013年海南经贸职业技术学院资助项目(hnjm2013109); 2013年海南经贸职业技术学院资助项目(JY201309)

 A Self-Adaption Page Layout Method Based on CSS+DIV

  1. 1. Hainan College of Economics and Business, Haikou 571127, China; 2. Haikou College of Economics, Haikou 571127, China
  • Received:2014-03-18 Online:2014-06-13 Published:2014-06-25

摘要:

 CSS+DIV网页布局方法已逐渐成为网页设计的主流技术,本文首先简要介绍目前常用布局技术的特点,然后以三行两列的网页布局为例,结合具体的代码实现,重点分析单列自适应宽度和两
列自适应宽度的CSS+DIV网页布局方式以及实现技巧。实践表明,本方法能使网页显示更加灵活,同时代码对于众多现代化的智能设备而言将更具可移植性。

关键词:  , CSS+DIV, 网页设计, 网页布局, 自适应宽度

Abstract:

 CSS+DIV layout schema has gradually become the core technology when design HTML page. This paper explains and compares several HTML page layout technologies in
common used, and shows a self-adaption page layout pattern coded in CSS+DIV schema, which give an example of self-adaption HTML page with 2-rows and 3-clolumn. The example code
focuses on the techniques of making one column adaptive to the screen when the other two are fixed, and in similar way by making two columns adaptive when only one column is
fixed. So many practices have revealed that self-adaption layout pattern makes the page to display more flexible and more portable when target some modern devices.

Key words: CSS+DIV, page design, page layout, adaptive width