|
<!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
|
|
Float根本就沒有clear這個值!
而是clear是一個獨立的參數,值可以為left,right,both,,一般可以設置為both來消除浮動。
|
|
此外,HTML5中還新增了header和footer標籤,以及address標籤
p被定義為paragraph。
|