css浮动布局

Original 2019-06-16 21:09:05 243
abstract:<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>浮动</title><style>.q{ width:172px; h

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>浮动</title>

<style>

.q{

width:172px;

height:20px;

}

.w{

width:40px;

height:20px;

background-color:pink;

float:left;

text-align:center;

margin-left:3px;

}

</style>

</head>


<body>

<div class="q">

<div class="w">1</div>

<div class="w">2</div>

<div class="w">3</div>

<div class="w">4</div>

</div>

</body>

</html>


Correcting teacher:查无此人Correction time:2019-06-17 09:35:30
Teacher's summary:完成的不错。刚接触编程,理解起来比较辛苦。要坚持,继续加油。

Release Notes

Popular Entries