Use PS to create an xhtml+css website homepage in two minutes

Use PS to create an xhtml+css website homepage in two minutes

There are too many articles about xhtml+css website reconstruction web standards, etc., so I will not repeat them. I will post the simplest method of making xhtml+css pages. Although the method is very simple, not many people may know it... at least I can't find it by searching on Google.

Let’s get started:

1. Open photoshop cs2 and open the designed website homepage. Cut with a slicing tool.

picture:

Make a website homepage with xhtml+css in two minutes

2. Click File -> Save as web format. The shortcut key is ctrl+alt+shift+s. Click the small inverted triangle image in the upper right corner and select Edit output settings.

picture:

Make a website homepage with xhtml+css in two minutes

3. As shown in the picture, select Slices in the second drop-down, select Generate CSS, and then select By ID in the subsequent drop-down.

picture:

Make a website homepage with xhtml+css in two minutes

4. Click OK to save and close the settings window. In the Save for Web window, click the Save button. Select Html and Images in the Save type. Enter a file name and click Save.

picture:

Make a website homepage with xhtml+css in two minutes

5. Complete the task. Take a look at the code, is it xhtml+css?

picture:

Make a website homepage with xhtml+css in two minutes

Haha, it’s that simple. I just made an xhtml+css page. Of course, in practical applications, this kind of automatically generated page is still not very good.

I still recommend you to use dreamweaver8 + editplus to create

<<:  Detailed explanation of CSS line-height and height

>>:  Using vue3 to imitate the side message prompt effect of Apple system

Recommend

Summary of mysqladmin daily management commands under MySQL (must read)

The usage format of the mysqladmin tool is: mysql...

Discussion on image path issues in css (same package/different package)

In CSS files, sometimes you need to use background...

Detailed explanation of JavaScript primitive data type Symbol

Table of contents Introduction Description Naming...

Design theory: the basics of font design

<br />Words are the inevitable product of hu...

CSS to achieve the effect of rotating flip card animation

The css animation of the rotating flip effect, th...

Element dynamic routing breadcrumbs implementation example

To master: localStorage, component encapsulation ...

In-depth study of MySQL composite index

A composite index (also called a joint index) is ...

Vue realizes dynamic progress bar effect

This article example shares the specific code of ...

Nginx location matching rule example

1. Grammar location [=|~|~*|^~|@] /uri/ { ... } 2...

MySQL select, insert, update batch operation statement code examples

In projects, batch operation statements are often...

Solution to JS out-of-precision number problem

The most understandable explanation of the accura...

HTML table tag tutorial (17): table title vertical alignment attribute VALIGN

The table caption can be placed above or below th...

Methods and steps to build nginx file server based on docker

1. Create a new configuration file docker_nginx.c...

Zen coding for editplus example code description

For example, he enters: XML/HTML Code div#page>...