目前共有10篇帖子。 內容轉換:不轉換▼
 
點擊 回復
247 9
我發現我竟然把div+css左右分欄佈局給忘了!
一派護法 十九級
1樓 發表于:2015-2-1 00:25
<!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <style type="text/css"> body,td,th { color: rgb(1,76,144); font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif; font-size: 14px; } body { background-color: rgb(243,249,252); } .main .left { float: left; width: 220px; padding: 8px; } .main .right { float: right; background-color: #FFFFFF; border-radius: 3px; border-color: rgba(189,207,221,1.00); border-style: solid; border-width: 1px; padding: 8px; margin-left: 6px; } .foot { float: clear; } h1 { color: rgb(36,185,255); font-size: 34px; } </style> </head> <body> <div class="main"> <div class="left">Content for New Div Tag Goes Here</div> <div class="right"> <h1>This is the title</h1> <p>Content for class "right" Goes Here</p> </div> </div> <div class="foot">Content for class "foot" Goes Here</div> </body> </html>
一派護法 十九級
2樓 發表于:2015-2-1 00:25
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style type="text/css">
body,td,th {
    color: rgb(1,76,144);
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, serif;
    font-size: 14px;
}
body {
    background-color: rgb(243,249,252);
}
.main .left {
    float: left;
    width: 220px;
    padding: 8px;
}
.main .right {
    float: right;
    background-color: #FFFFFF;
    border-radius: 3px;
    border-color: rgba(189,207,221,1.00);
    border-style: solid;
    border-width: 1px;
    padding: 8px;
    margin-left: 6px;
}
.foot {
    float: clear;
}
h1 {
    color: rgb(36,185,255);
    font-size: 34px;
}
</style>
</head>

<body>
<div class="main">
  <div class="left">Content for New Div Tag Goes Here</div>
  <div class="right">
    <h1>This is the title</h1>
    <p>Content for  class "right" Goes Here</p>
  </div>
</div>
<div class="foot">Content for  class "foot" Goes Here</div>
</body>
</html>

一派護法 十九級
3樓 發表于:2015-2-1 00:26
使用dw cc2014的各種不適應。。。。
真是cs3用慣了
一派護法 十九級
4樓 發表于:2015-2-1 00:26
Content for New Div Tag Goes Here This is the title Content for class "right" Goes Here
Content for class "foot" Goes Here
一派護法 十九級
5樓 發表于:2015-2-1 00:26
一派護法 十九級
6樓 發表于:2015-2-1 00:27
Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server.
一派護法 十九級
7樓 發表于:2015-2-1 00:28
Participate
一派護法 十九級
8樓 發表于:2015-2-1 00:29
78680
一派護法 十九級
9樓 發表于:2015-2-1 13:54
Float根本就沒有clear這個值!
而是clear是一個獨立的參數,值可以為left,right,both,,一般可以設置為both來消除浮動。
一派護法 十九級
10樓 發表于:2015-2-2 12:28
此外,HTML5中還新增了header和footer標籤,以及address標籤
p被定義為paragraph。

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
(快捷鍵:Ctrl+Enter)
 

本帖信息

點擊數:247 回複數:9
評論數: ?
作者:巨大八爪鱼
最後回復:巨大八爪鱼
最後回復時間:2015-2-2 12:28
 
©2010-2024 Arslanbar Ver2.0
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。