“设置元素右浮动时,紧邻其后的元素会上移,并紧挨着其左侧显示”为什么不对?
这句话哪里有错呀?
这句话哪里有错呀?
2015-05-09
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>background-position实用</title>
<style type="text/css">
#one{
float: right;
border: 1px solid red;
}
#two{
border: 1px solid blue;
}
</style>
</head>
<body>
<div id="one">
this is one
</div>
<a href="#" id="two">
this is two
</a>
</body>
</html>举报