发新话题
打印

为什么我的这个代码不能得到我要的结果

为什么我的这个代码不能得到我要的结果

<html>
<title>兴皇玛科技有限公司</title>
<h>
<style type="text/css">
.yangshi{ width:300px; height:50px; border:1px solid #F00; margin:0 auto;
text-align:right;}
</style>
<style   type="text/css">
.yangshi .yangshi_a{ float:left; width:30px; border:1px dashed #333;}
</style>
<style  type="text/css">
.yangshi .yangshi_b{ float:right; width:50px; border:1px dashed #333;}
</style>
</h>
<body>
<div class="yangshi">
<div class="yangshi.yangshi_a">好啊</div>
<div class="yangshi.yangshi_b">给力</div>
</div>
<div class="clear"><img src="images/s.gif" /></div>
</body>
</html>


为什么不能的到这个结果呢

HTML结构都是错误
发新话题