<style type="text/css">
*{margin:0; padding:0;} html,body{ width:100%; height:100%;} body{ background:#fff url(/eg/eg_2014_01_02_14_50.jpg) center no-repeat;} </style> <div class="wrap"> <h2>讓body標簽中的背景圖片水平垂直居中</h2> <div class="eg"> <h3>讓<body/>標簽的背景圖片水平垂直居中</h3> <p>注:設置html,body{ width:100%; height:100%;}</p> </div> </div> </td> </tr> </table>