设计稿 自动html,从设计稿到HTML.pdf

本文介绍了传统的表格布局法,包括如何使用表格元素进行网页布局及表格的相关属性设置。此外还提供了表格布局的实际操作案例。

从设计稿到HTML

V

第一节

认识表格布局法

用表格定位网页元素

表格定位法是把整个网页当做一个或多个表格来进行划分,然后将文本

或图片等不同的网页元素分别填充到到一个个单元格里面。

通过单元格的相对对齐属性来进行定位,比如居中,居左等。

• 这是一种传统的网页制作方法,在现阶段专业的网页制作当中已不被推荐,因为不符

合HTML语义的标准,即HTML中的表格元素应仅用于数据类表格,而不是用于布局。但

专业的网页制作需要更多的技术背景,而该方法可以作为应急的手段。

表格创建

表格的基本代码结构

第一个单元格第二个单元格
第一个单元格第二个单元格

表格选择

• 选择表格,属性面板就会切换为表格属性

• 只要我们把鼠标放在表格边界上点击就可以

选择表格,表格选定后会有黑色手柄出现。

• 表格的标签为

条中的相应标签来选中整个表格。 (推荐)

表格属性

项目 说明 备注

表格 Id 表格名

Rows行 行数

Cols列 列数

W宽 宽度

单位有两种形式:像素/百分比

H高 高度

CellPad填充 单元格内元素到容器边界的距离

缺省值不等于0

CellSpace间距 单元格与单元格之间的距离

Align 对齐 对齐属性 相对于外部容器

Border边框 边框宽度

Bg Color 背景颜色

Brdr Color 边框颜色

Bg Image 背景图像

单元格属性

• 什么是单元格 项目 说明

• 标签

Horz 水平对齐

Vert 垂直对齐

• 属性

No Wrap 不换行

Bg (上) 背景图像

Bg (下) 背景颜色

分离

合并

第二节

表格练习

建立一个表格

技巧:

{250, 50}

Learning Web Design: A Beginner’s Guide to HTML, CSS, JavaScript, and Web Graphics By 作者: Jennifer Robbins ISBN-10 书号: 1491960205 ISBN-13 书号: 9781491960202 Edition 版本: 5 出版日期: 2018-05-21 pages 页数: 808 英文原版超清 Do you want to build web pages but have no prior experience? This friendly guide is the perfect place to start. You’ll begin at square one, learning how the web and web pages work, and then steadily build from there. By the end of the book, you’ll have the skills to create a simple site with multicolumn pages that adapt for mobile devices. Each chapter provides exercises to help you learn various techniques and short quizzes to make sure you understand key concepts. This thoroughly revised edition is ideal for students and professionals of all backgrounds and skill levels. It is simple and clear enough for beginners, yet thorough enough to be a useful reference for experienced developers keeping their skills up to date. Build HTML pages with text, links, images, tables, and forms Use style sheets (CSS) for colors, backgrounds, formatting text, page layout, and even simple animation effects Learn how JavaScript works and why the language is so important in web design Create and optimize web images so they’ll download as quickly as possible NEW! Use CSS Flexbox and Grid for sophisticated and flexible page layout NEW! Learn the ins and outs of Responsive Web Design to make web pages look great on all devices NEW! Become familiar with the command line, Git, and other tools in the modern web developer’s toolkit NEW! Get to know the super-powers of SVG graphics Partl. Getting Started 1. Getting Started in Web Design D2. How the Web Works D3. Some Big Concepts You Need to Know Part ll. HTML for STRUCTURE 4. Creating a Simple Page D5. Marking Up Text D6. Adding Links 7. Adding lmages 8. Table Markup D9. Forms D10. Embedded Media Part ll. CSS for Presentation b11. Introducing Cascading Style Sheets 12. Formatting Text 13. Colors and Backgrounds b14. Thinking Inside the Box 15. Floating and Positioning D16. CSS Layout with Flexbox and Grid 17. Responsive Web Design D18. Transitions, Transforms, and Animation D19. More CSS Techniques D20. Modern Web Development Tools Part IV. JavaScript for Behavior D21. Introduction to JavaScript D22. Using JavaScript Part V. Web lmages D23. Web lmage Basics D24. Image Asset Production D25. SVG Part Vl. Appendices A. Answers B. HTML5 Global Attributes C. CSS Selectors, Levels 3 and4 DD. From HTML+to HTML5
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值