DIV:
${pic.desc}
程式碼如下:
.pic_conent{
height:720px;這個高度會被js改掉*/
text-align: center;
display: table-cell;
vertical-align: middle;
}.pic_layer{text-align: center; width:100%; display:inline-block; vertical-align:middle;}
程式碼如下:
$(function() {
$(function() {
> $(window).height();
$(".pic_conent").height(surH);window.onresize=function(){var surH = $(window).height() ;$(".pic_conent").height(surH);}