林妙可新浪微博:怎样才能实现表格背景图片拉伸
来源:百度文库 编辑:中财网 时间:2024/05/07 07:32:32
怎样才能实现表格背景图片拉伸
制作随表格拉伸的背景图制作页面时,有时需要在表格内插入背景图,类似于http://www.it365cn.com/counter.asp、http://www.it365cn.com/about.asp,我们可以使用CSS进行控制,
代码1:
body要设置leftmargin和topmargin属性为0
代码2:
style="background-image:url(./images/counter_bg.jpg);background-repeat: no-repeat;background-position: right bottom;"
其中,./images/counter_bg.jpg为显示图片路径。
如果现在需要实现背景图随表格拉伸而不重复的拉伸填充,如何实现?
制作方法:
建立表格,并在