作者共發了10篇帖子。
我發現我竟然把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。

回復帖子

內容:
用戶名: 您目前是匿名發表
驗證碼:
 
 
©2010-2024 Arslanbar [手機版] [桌面版]
除非另有聲明,本站採用創用CC姓名標示-相同方式分享 3.0 Unported許可協議進行許可。