Experience using CSS_CSS/HTML

WBOY
Release: 2016-05-16 12:11:42
Original
1553 people have browsed it

1. CSS management

I personally feel it is more important, and there seems to be relatively few people talking about this aspect online

If managed well, it will save a lot of time and trouble when calling and defining CSS

The following is some of my accumulation

The first is why you need to import or link CSS externally

Because a webpage has many pages, a lot of CSS is used (and some of the CSS is repeated). If each page is defined separately, the following is the management method. In the images folder under the index, The CSS folder is at the same level as it, making it easy to call and manage

When we start to make a website, most of us have a floor plan in PS, and at this time we can preliminarily clarify the same parts of CSS

For example, bottom, body text

Suppose there are three styles a, b, and c appearing on the homepage

and

will also appear in sub-pages

Then define a on the home page first, and then define b and c in a, then only a will appear in the CSS folder

But when the sub-page imports a, you can see a, b, c and then apply them in sequence

Experience using CSS_CSS/HTML

Then define multiple hyperlink styles in one page

a:link

a:visited

a:hover

b:link

b:visited

b:hover

Just replace the front one and it’s OK

But be careful not to use CSS, do not use numbers in names, such as 123, and do not use combinations of numbers and letters such as ss12

Because although using numbers is fine, in DW, they are displayed in the default way. Although the effect on the final web page is the same, it looks very messy in DW, so... ...It’s better to name it with pure letters

Experience using CSS_CSS/HTML

Three, about row height

The commonly used settings are pixels and %

But it’s best to use % to set it,

Because the pixels displayed in DW are slightly different from those on the online page

The % setting is the same as on the web page

You’ll know just by looking at the picture

Experience using CSS_CSS/HTML
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template