Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to achieve fixed width and layout centered template Framework by html

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Xiaobian to share with you how to achieve html width fixed and layout centered template framework, I believe most people still do not know how to share this article for your reference, I hope you have a lot of harvest after reading this article, let's go to understand it together!

Fixed width and centered template effect

Broken code (can be copied directly):

CSS5body {font: 14px/24px Song, New Song;bac kg round: #66666;margin: 0;padding: 0;text-align: center;color: #00000}#container {width: 780px;bac kg round: #FFFF;margin: 0 auto;border: 1px solid #00000;text-align: left}#mainContent {padding:0 20px} primary content

#container corresponds to the outermost div id=container Set the equipment to be centered, and set the static width, complete the construction of centering and fixed width html template frame

Romance of the Three Kingdoms

In April of the second year of Jianning, the emperor went to Wende Hall. When he ascended his seat, a storm rose from the corner of the temple. A large green snake flew up from the beam and sat on the chair. The emperor was shocked and fell, and he ordered the alms to enter the palace. All officials fled to avoid it. Soon, the snake disappeared. There was a sudden thunderstorm and heavy rain, and hail fell until midnight, but there were countless houses. In February of the fourth year of Jianning, Luoyang earthquake; The sea overflowed again, and the border residents were all swept into the sea by the big waves. In the first year of Guanghe, the hen turned male. On the first day of the sixth month, black gas flew into Wende Hall for more than ten feet. Autumn July, there is a rainbow in the jade hall; Wuyuan mountain bank, all tilt. All kinds of good luck, not only one end. The emperor issued an edict to ask the ministers about the cause of the disaster, and Cai Yong, a counselor, wrote a letter saying that the fall of chickens was caused by the interference of women's temples in government affairs. His words were quite straightforward. The emperor sighed and got up to change clothes. Cao Jie secretly watched from behind and ordered them all to be manipulated. He then accused Yong of other things and let him go back to the fields. Later, Zhang Rang, Zhao Zhong, Feng Wei, Duan Gui, Cao Jie, Hou Lan, Jian Shuo, Cheng Kuang, Xia Yun and Guo Sheng all committed evil together and were named "Ten Chang Shi."

The above is "html how to achieve fixed width and layout centered template frame" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report