The Helper home (www.bkjia.com) provides a method for setting the middle layer of a webpage with only CSS. It's not easy to try again today. Fortunately, the previous pages are still available. The same Code is not easy to use. As a result, we hope to find some clues to delete the segment. Css only deletes this part of the Setting code, which is not easy to use. In javascript, it is still not easy to delete it. After the last deletion, I finally found that the original webpage header is different. It is not easy to use automatically generated by using. NET by default.
Reference content is as follows: <! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN"> |
You can use the following transitional document type. So pay attention to this 1.1.
Reference content is as follows: <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <Html xmlns = "http://www.w3.org/1999/xhtml" xml: lang = "en" lang = "en"> |
The following is the HTML code of the center layer.
Reference content is as follows: <Div id = "pagebody"> </div> |
The following figure shows how to set the center CSS.
Reference content is as follows: # Pagebody { Width: 940px; Background: # FFF; Margin: 0 auto; } |