|
<!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。
|