网页完美居中方案
一般,我都是用 margin: 0 auto; 加固定宽度来做这个网页居中的,不过这种方式在ie6以下不支持。下面介绍的这种方式,听说比较好
#container{ background:#ffcurl(mid.jpg)repeat-ycenter; position:absolute; left:50%; width:760px; margin-left:-380px; }
网页完美居中方案
一般,我都是用 margin: 0 auto; 加固定宽度来做这个网页居中的,不过这种方式在ie6以下不支持。下面介绍的这种方式,听说比较好
#container{ background:#ffcurl(mid.jpg)repeat-ycenter; position:absolute; left:50%; width:760px; margin-left:-380px; }
本文記錄了一次基於實際業務場景的nginx調優過程,通過一步步的分析實踐把服務器整體性能提升了50倍。 一、需求背景
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>title</title> <style type="text/css">
實現兩欄佈局:左側定寬,右側自適應 html: <html> <head> </head> <body> <div class="container"> <div class="left">LEFT