CSS
預防老人癡呆,每次碰到問題都要重新找一次....所以在此記錄下來作法
首先採用兩個DIV包起來的作法
外層DIV給予長寬各100%,內層DIV 就以position:fixed;top:50%;left:50%;
<div style="width:100%; height:100%;">
<div style="position:fixed;top:50%;left:50%;">
<h3>測試文字區塊,DIV置中</h3>
<h3>預防老人癡呆,在此紀錄一下作法。</h3>
</div>
</div>