body { margin:0; padding:0px; background-color:#2C3437; } .content { display:inline-block; width:350px; height:400px; padding-top:70px; margin-right:5px; margin-left:5px; } div>div>div { display:block; height:20px; } div>div>div>div { width:16px; height:16px; background-color:#ff00d8; display:inline-block; float:left; margin:2px; } div>div.content1>div>div.fl { background-color:#ff0033; } div>div.content2>div>div.fl { background-color:#006699; } div>div.content3>div>div.fl { background-color:#ffff33; }
纯jquery+html+css3的表白程序!简单实用!