用CSS为你的网页图片打造漂亮相框- 博客技巧博客代码博客{tx}博客素材 ...
用CSS为你的网页图片打造漂亮相框
[转贴 2010-02-22 07:32:55]
看到别人用PS做的漂亮边框,而自己又不会?如果是用在网页上的话,那么用CSS就可以解决这个问题。
打开记事本,输入以下内容。
<html >
<head>
<title>无标题文档</title>
</head>
<body>
<table >
<tr><td><img src="1.jpg" /></td></tr>
</table>
</body>
</html>
把它保存为picture.html。双击它看一下,懂HTML语言的朋友不用看就知道,这张图片不会有任何效果。
0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" onclick="if(this.width>=200) window.open('http://img80.cfanhome.com/tianma/200904/8_88407_19ecd4fa946fae7.jpg');" src="http://img80.cfanhome.com/tianma/200904/8_88407_19ecd4fa946fae7.jpg" width=200 onload="var image=new Image();image.src=this.src;if(image.width>0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" border=0>
现在我们来把代码改一下。
找到<table>这一行,我们把它改成<table style="border:15px; border-style:ridge">
现在保存该网页,再运行看一下效果。
0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" onclick="if(this.width>=200) window.open('http://img80.cfanhome.com/tianma/200904/8_88407_54b1f233bb6dbfd.jpg');" src="http://img80.cfanhome.com/tianma/200904/8_88407_54b1f233bb6dbfd.jpg" width=200 onload="var image=new Image();image.src=this.src;if(image.width>0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" border=0>
来源:和桃园
郑重声明:资讯 【用CSS为你的网页图片打造漂亮相框- 博客技巧博客代码博客{tx}博客素材 ...】由 发布,版权归原作者及其所在单位,其原创性以及文中陈述文字和内容未经(企业库qiyeku.com)证实,请读者仅作参考,并请自行核实相关内容。若本文有侵犯到您的版权, 请你提供相关证明及申请并与我们联系(qiyeku # qq.com)或【
在线投诉
】,我们审核后将会尽快处理。
——
相关资讯
——
博乐[新浪新闻]个性背景墙价格满意
2017/7/15
在江城哪个医院做包皮手术好
2015/11/9
不锈钢水箱供货厂家——专业的不锈钢水箱制作商
1900/1/1
linux启动服务的含义_soulmate_新浪博客
2010/2/5
能长高的小秘密,未满25岁的同志们,都有机会再长高5厘米!!!-ZOL博客
2010/2/21
[笔试] 农村信用社安全保卫xx- CreditCard - frightful - 和讯博客
2010/3/26
¥500元化妆品包装盒设计- 全球购物中心- lxz430034 - 和讯博客
2010/4/22
一个人的快乐_小钰_新浪博客
2010/7/23
女性二期梅毒怎么治【梅毒xx中心】
2012/12/13
深圳祛剖腹产xx医院哪家好
2013/1/31
安柏灯饰好吗,对比
2014/11/27
怎么样可以消黑眼圈
2015/3/17
女人xx方法哪种好あ
2015/3/20
中山团味小仙加盟店
2015/5/27