制作页面时,有时需要在表格内插入背景图,类似于http://www.it365cn.com/counter.asp 、http://www.it365cn.com/about.asp ,我们可以使用CSS进行控制, 代码1: body要设置leftmargin和topmargin属性为0
< div style ="width:100%;height:100%;position:absolute;z-index:-1;top:0px;" >< img src ="../css/ss3logni3.jpg" width ="100%" height ="100%" ></ div >
代码2: style="background-image:url(./images/counter_bg.jpg);background-repeat: no-repeat;background-position: right bottom;" 其中,./images/counter_bg.jpg为显示图片路径。 如果现在需要实现背景图随表格拉伸而不重复的拉伸填充,如何实现? 制作方法: 建立表格,并在<table>中插入CSS的一种滤镜,代码: style="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='../images/counter_bg.jpg', sizingMethod='scale')" 请观看效果!!http://www.it365cn.com
相关文章:
2022-01-01
2022-01-29
2021-11-30
2021-11-18
2022-12-23
2021-05-01
2022-02-08
猜你喜欢
2021-12-05
2021-11-24
2022-01-30
2022-02-07
2021-11-19
2022-01-25
2021-09-14
相关资源
下载
2022-12-12
下载
2023-01-13
下载
2021-06-27
下载
2022-11-30
下载
2022-12-31