<div style=" margin:0 auto;width:606px; height:240px ; align:center; " >
<div id="checkbox"
style=" float:right; width:100px; height:240px ; border:1px solid blue;"></div>
<div id="show"
style="float:right; width:500px; height:240px ;border:1px solid red;"
></div>
</div>
这里使用float:right属性。float做为CSS中的一个属性定义元素向哪个方向浮动。
float:right 文本或图像会移至父元素中的右侧。
注意有写情况float属性必须配合width使用,否则失效。