創建包裝DIV內容周圍
<div id="wrapper">
<!-- content here -->
</div>
和風格像這樣
#wrapper {
width: 980px /* Maximum width of the content */
max-width: 100% /* responsive width */
margin: 0 auto; /* center the wrapper */
}
也不要使用表格的影片。表格列不會在小屏幕上打破。使用
<ul class="videos">
<li class="video">
<!-- content here -->
</li>
<li class="video">
<!-- content here -->
</li>
</ul>
然後CSS他們
.videos {
list-style: none; /* no bullets */
}
.videos .video {
display: inline-block; /* videos side by side as long as there is space */
width: 245px; /* 980px site width /4 = 245px = 4 videos in one row */
}
在底部的粘性帶狀線可能是:
<div class="strip-line-bottom"></div>
和CSS它
.strip-line-bottom {
position: fixed;
bottom: 0;
width: 100%;
height: 2px;
background: url(path/to/image.jpg) repeat-x;
}
有關詳細信息,您將不得不提供更多的信息;-)
我不知道從哪裏開始的靈活部分,因爲如果做得不好,百分比可能非常棘手 – Satch3000