|
我發現我竟然把div+css左右分欄佈局給忘了! |
一派护法 十九级 |
<!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>
|
一派护法 十九级 |
<!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>
|
一派护法 十九级 |
使用dw cc2014的各種不適應。。。。 真是cs3用慣了
|
一派护法 十九级 |
Content for New Div Tag Goes Here
This is the title
Content for class "right" Goes Here
Content for class "foot" Goes Here
|
一派护法 十九级 |
|
一派护法 十九级 |
Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server.
|
一派护法 十九级 |
Participate
|
一派护法 十九级 |
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。
|