<body><div class=border><div class=bground><span>LED地脚灯热销系列</span><i>[镇店之宝,谁与争疯]</i><div style=clear:both></div></div></div><style>。
border{width:800px;height:300px;border:1px solid #ccc;}。bground{height:20px;background:blue;margin:0px;padding:0px;line-height:20px;font-size:14px;}。
bground span{text-align:left;float:left;display:inline;}。bground i{font-style:normal;text-align:right;float:right;display:inline;}</sytle></body>将样式当中的宽度、高度换成你自己的数值,即可。
本回答由提问者推荐。
- 上一篇: 我想学网页设计,我应该学HTML5还是HTML?
- 下一篇: 返回列表