随笔分类 - Html5
摘要:#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections ...
阅读全文
摘要:DIV居中的几种方法 1. 1 body{ 2 text-align:center; 3 } 缺点:body内所有内容一并居中 2. .center{ position: fixed; left: 50%; } 缺点:需要设置position属性,网页复杂时容易扰乱页面布局,而且只是元素的起始位置居
阅读全文