Created
December 18, 2012 08:46
-
-
Save qianduan/4326240 to your computer and use it in GitHub Desktop.
Revisions
-
qianduan created this gist
Dec 18, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>只是文字的水平和垂直居中</title> <style> html,body{width: 100%;height: 100%;margin: 0;padding: 0} body{background-color: green;display: table;} p{line-height: 1.6;text-align: center;padding: 0;margin: 0;display: table-cell;vertical-align: middle;} </style> </head> <body> <p>wording</p> </body> </html>