移動頁面div置中效果代碼,頁面div置中代碼

來源:互聯網
上載者:User

移動頁面div置中效果代碼,頁面div置中代碼

線上查看效果:
http://hovertree.com/texiao/mobile/4.htm

可用手機瀏覽器查看

以下為HTML檔案:

<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1" /><title>移動頁面div置中效果-移動</title><base target="_blank"/><meta charset="utf-8" /><style>.hovertreecenter{width:80%;margin:0px auto;border:1px solid gray;}a{color:blue;text-decoration:none;}</style></head><body><div class="hovertreecenter">這是一個div,用手機瀏覽器開啟可見置中。當然用PC瀏覽器也是置中的。但更適合多種行動瀏覽器。置中代碼請看 .hovertreecenter類樣式。<br /><a href="http://hovertree.com">首頁</a> <a href="http://keleyi.com">柯樂義</a> <a href="http://tool.keleyi.com">工具</a> <a href="http://m.hovertree.com">答題</a> <a href="http://hovertree.com/texiao/">特效</a> <a href="http://hovertree.com/hvtart/bjae/t2lo8pf7.htm">原文</a><br /><br />猜幾個燈謎(謎麵包含“起”):<br /><a href="http://m.hovertree.com/miyu/bjae/ky5dbn94.htm">1 頭上青絲盤繞起(3字旅遊新詞)</a> <br /> <a href="http://m.hovertree.com/miyu/bjae/mr8uuo1i.htm">2 晨起山間飛鳥鳴 (打一字)</a> <br /> <a href="http://m.hovertree.com/miyu/bjae/ousx0rqh.htm">3 左看馬靠它,右看它靠馬,兩邊一起看,腳踩萬裡沙。 (打一字)</a><img src="http://m.hovertree.com/tu/baje/mm.jpg"/><br /> 第二個解析 :晨起為“日”,山間為“丨”,飛鳥鳴為“口”,“飛”為減損詞,解讀為“鳴”的“鳥”飛走了。謎底為:呻</div></body></html>


 

web前端: http://www.cnblogs.com/jihua/p/webfront.html

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.