Home  >  Article  >  Web Front-end  >  Web standard layout example tutorial, use positioning to easily solve complex CSS layout_CSS/HTML

Web standard layout example tutorial, use positioning to easily solve complex CSS layout_CSS/HTML

WBOY
WBOYOriginal
2016-05-16 12:12:301481browse

I believe that 99% of the friends who come to the classic forum to learn standards are not going to join W3C or become professional researchers. So what is the purpose of everyone coming? It's very simple. In fact, I just want to add one more skill to myself through standard learning, so that when I look for a job, I won't be stumped by "you need to be proficient in web standards". In the following example, xhtml does not What is the semantics? The purpose of this article is just to let everyone better understand the usage of relative and absolute positioning in CSS (there are indeed many newbies asking this question), and how to effectively combine the background to achieve a more complex layout.I hope the seniors can give me some pointers on the shortcomings, thank you!

-------------------------------------------------- ------first step----------------------------------------- --

First, let’s design a demo with a complicated layout (irregular layout):
click for full size

---------- ----------------------------------------Step 2------ ------------------------------------
Let's write the code
< HTML>

model












---------------------------- -- -------実際のページ効果: ------------ --- ----------


Statement:
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
Previous article:CSS tips_CSS/HTMLNext article:CSS tips_CSS/HTML