要想让代码出来得很有逻辑而简约。而这是要从设计开始的。非常符合盒子式的设计模式,一拿到就觉得特别专业和省力。
首先来说下作为前端我拿到设计稿先看哪些部分:
1.整个网站的底色,观察设计规律,主要找具有统一性的设计
比如按钮button的 宽、高、底色、所用文字、文字大小、文字颜色都是一样的,这样我们写代码的时候就可以把这些写进一个class,以方便后面复用。
2.将网页横竖向开始分区,这时候心里大概知道了内容content,大概在第几层,第几列(x,y),这样我们在写代码的时候就非常有层次感
3.让后看(x,y)里面的内容,而内容我们看什么呢,主要有内容A区域的底色(background)/ 边框(border)/ 内边距(padding)/ 外边距(margin)/ 阴影 (shadow) / 圆角 (border-radius)
4.看一些细节,如 特色图标,专有标签,这是网页设计师最考验设计师的地方,在千万网站中,要想一眼难以忘记,靠的就是独特的风格。
5.这时候我们开始考虑交互性的效果,不仅仅是网页上的一些动态效果,等多的是用户在使用过程中的呈现方式。
6.网页的性能,比如压缩代码和图片,加载方式。
7.数据的交互

The official account web page update cache, this thing is simple and simple, and it is complicated enough to drink a pot of it. You worked hard to update the official account article, but the user still opened the old version. Who can bear the taste? In this article, let’s take a look at the twists and turns behind this and how to solve this problem gracefully. After reading it, you can easily deal with various caching problems, allowing your users to always experience the freshest content. Let’s talk about the basics first. To put it bluntly, in order to improve access speed, the browser or server stores some static resources (such as pictures, CSS, JS) or page content. Next time you access it, you can directly retrieve it from the cache without having to download it again, and it is naturally fast. But this thing is also a double-edged sword. The new version is online,

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

This article demonstrates efficient PNG border addition to webpages using CSS. It argues that CSS offers superior performance compared to JavaScript or libraries, detailing how to adjust border width, style, and color for subtle or prominent effect

The article discusses the HTML <datalist> element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

The article discusses the HTML <meter> element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates <meter> from <progress> and ex

This article explains the HTML5 <time> element for semantic date/time representation. It emphasizes the importance of the datetime attribute for machine readability (ISO 8601 format) alongside human-readable text, boosting accessibilit

The article discusses the HTML <progress> element, its purpose, styling, and differences from the <meter> element. The main focus is on using <progress> for task completion and <meter> for stati


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
