我想給第二列的寬度,但我無法做到這一點。 任何幫助是可觀的。代碼如下:我想給widh我的佈局網格
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<style>
.ui-block-a {
background-color: lightgray;
border: 1px solid black;
height: 100px;
font-weight: bold;
text-align: center;
padding: 30px;
}
.ui-block-b {
background-color: lightgray;
border: 1px solid black;
height: 100px;
font-weight: bold;
text-align: center;
padding: 30px;
}
</style>
</head>
<body>
<div data-role="page" id="pageone">
<div data-role="header">
<h1>Customized Columns</h1>
</div>
<div data-role="main" class="ui-content">
<p>Three-column Styled Layout:</p>
<div class="ui-grid-b">
<div class="ui-block-a"><span>First Column</span></div>
<div class="ui-block-b"><span>Second Column</span></div>
</div>
</div>
</div>
</body>
</html>
我能夠更改列的高度,但我無法改變它的寬度是有我錯過任何東西嗎?請幫忙。
謝謝。
這是工作的罰款http://jsfiddle.net/2av2ny1d/。問題是什麼?哪一個你不能給寬度 –
請提供完整的CSS代碼或至少上述HTML代碼中提到的css類 – divy3993
@ketan我想要一個行和兩個列,第二列必須有更大的寬度,然後第二個 –