html中图片居中代码
来源:百度知道 编辑:UC知道 时间:2024/07/05 09:15:08
具体代码如下,要怎么弄,才能居中呢?
<a href="http://www.imagechef.com/ic/make.jsp?tid=Beach" target="_blank"> <img src="http://cdn-users1.imagechef.com/ic/stored/2/080915/sampe80c1572f0c3a6e2.jpg" alt="Beach custom comment codes for MySpace, Hi5, Friendster and more - ImageChef.com"/> </a>
请赐教,我很菜很菜...
<a href="http://www.imagechef.com/ic/make.jsp?tid=Beach" target="_blank"> <img src="http://cdn-users1.imagechef.com/ic/stored/2/080915/sampe80c1572f0c3a6e2.jpg" alt="Beach custom comment codes for MySpace, Hi5, Friendster and more - ImageChef.com"/> </a>
请赐教,我很菜很菜...
<div style="text-align:center"><a href="http://www.imagechef.com/ic/make.jsp?tid=Beach" target="_blank"> <img src="http://cdn-users1.imagechef.com/ic/stored/2/080915/sampe80c1572f0c3a6e2.jpg" alt="Beach custom comment codes for MySpace, Hi5, Friendster and more - ImageChef.com"/> </a> </div>
哪,在这样的东西直接插入你要加入的东西就居中了:
<div style="text-align:center"></div>或者
<center></center>
再给你一些html入门教程吧:
http://bbs.iteasier.com/showtopic-247.aspx
可以用div标签来实现
<div style="text-align:center">