标签:
内容目录:
HTML补充
javascript
1、display标签
display的inline-block 属性会自动带3px的宽度

<span style="display: inline-block;width: 80px;height: 50px;background-color: #00a2ca"> </span> <span style="display: inline-block;width: 80px;height: 50px;background-color: red;"> </span>
如果要取消这3px像素的话需要将第二个span属性设置为float:left
2、img标签
<body>
<div>
<div class="item">
<a href="http://www.etiantian.org">
<img src="2.jpg"/>
</a>
</div>
</div>
</body>

<style>
img{
border: 0;
}
</style>
<body>
<div>
<div class="item">
<a href="http://www.etiantian.org">
<img src="2.jp" alt="图片">
</a>
</div>
</div>
</body>
效果如下:

3、iframe嵌套其他网站标签
<body> <iframe width=420px height=330px name=aa frameborder=0 src=http://www.cctv.com></iframe> <!--scrolling表示是否显示页面滚动条, 可选的参数为auto、yes、no,如果省略这个参数,则默认为auto。 --> </body>
标签:
原文地址:http://www.cnblogs.com/Jabe/p/5774478.html