这个显示的结果为什么CCC在BBB前面呢 这是为什么呢?怎样才能让BBB在CCC前面?
<!DOCTYPE html>
<html>
<head>
<title></title>
<style type="text/css">
#sp1{float: left;}
#sp2{float: right;}
#sp3{float: right;}
</style>
</head>
<body>
<div><span id="sp1">aaa</span><span id="sp2">bbb</span><span id="sp3"><a href="#">ccc</a></span></div>
</body>
</html>
右浮动,请将元素反向排列;
渲染是由上到下,自左至右进行的,bbb先右浮动,ccc次之。