2015-09-07 40 views
1

嗨我有一個網頁格式化在一個單獨的div行中的4個div列我想使這個 更具響應性的引導程序...但是像Id的列寬保持靜態200px寬,讓他們只是「流行在網頁重新縮小的情況下「。 是可能的嗎?我試圖重新命名類=類列= COL-MD-3div行中的靜態div列?

然後試圖包裹在div對中...標籤這些 嘗試BOT均不良

<html> 
<head> 
<style type="text/css"> 
* {margin: 0; padding: 3px;} 
#container {height: 800%; width:900%; font-size: 10px;} 
.columns,.spacer{display: inline-block; *display: inline; zoom: 0; vertical-align: top; font-size: 12px;} 
.columns {background-color: white; width: 300px; height: 700px;} 
.columns {box-shadow: 10px 10px 5px #888888;} 
.spacer {background-color: transparent; width: 1px; height: 1px;} 
.footerDIV {box-shadow: 10px 10px 5px #888888;} 
.footerDIV {background-color: white; width: 620px; height: 100px;font-size: 12px;} 
.spacerHorizontal {background-color: transparent; width: 10px; height: 10px; font-size: 12px;} 
A{text-decoration:none} 
</style> 
<link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet"> 
<link href="./bootstrap/css/bootstrap-theme.min.css" rel="stylesheet"> 
<script src="./bootstrap/js/bootstrap.min.js"></script> 
<script src="./jquery.js"></script> 
<script src="./jquery.corner.js"></script> 
</head> 
<body> 
<div id="container"> 
<div class="row"> 

<div class="columns" id="Admissions" style='border-radius: 10px; background-repeat: no-repeat;'>1</div> 
<div id=1spacer1 class=spacer style="background-color: #white; width: 3px; height: 4px;"></div> 

<div class="columns" id="Headcount" style='border-radius: 10px; background-repeat: no-repeat;'>2</div> 
<div id=2spacer1 class=spacer style="background-color: #white; width: 3px; height: 4px;"></div> 

<div class="columns" id="Test1"  style='border-radius: 10px; background-repeat: no-repeat;'>3</div> 
<div id=3spacer1 class=spacer style="background-color: #white; width: 3px; height: 4px;"></div> 

<div class="columns" id="Test2"  style='border-radius: 10px; background-repeat: no-repeat;'>4</div> 
<div id=4spacer1 class=spacer style="background-color: #white; width: 3px; height: 4px;"></div> 

</div> 
</body> 
</html> 

任何建議,如何讓這項工作

回答

2

在div括號內添加width =「200」。我會想象會有用嗎?

+0

此外,您還可以將寬度設置爲%。我個人比px更喜歡%。 :) – Levi