typecho在Nginx环境下的rewrite规则

location / {
    if (-f $request_filename/index.html){
        rewrite (.*) $1/index.html break;
    }
    if (-f $request_filename/index.php){
        rewrite (.*) $1/index.php;
    }
    if (!-f $request_filename){
        rewrite (.*) /index.php;
    }
}

CSS实现pre标签内容自动换行

pre, code { 
display: block; 
overflow: auto; 
background: #f4f4f4; 
padding: 5px 10px; 
border: 1px solid #eee; 
whitewhite-space:pre-wrap; /* css-3 */    
whitewhite-space:-moz-pre-wrap; /* Mozilla, since 1999 */    
whitewhite-space:-pre-wrap; /* Opera 4-6 */    
whitewhite-space:-o-pre-wrap; /* Opera 7 */    
word-wrap:break-word; /* Internet Explorer 5.5+ */  
white-space: pre-wrap; /* Firefox */ 
}