用CSS把背景图片平铺
asp 笔记 2010-01-20 16:58:02 阅读1265 评论0 字号:大中小
body{background:url(图片) repeat}
背景{}中添加background: url(图片地址)repeat
详细讲解:
repeat 背景图像在纵向和横向上平铺
no-repeat 背景图像不平铺
repeat-x 背景图像在横向上平铺
repeat-y 背景图像在纵向平铺
背景{}中添加background: url(图片地址)repeat
详细讲解:
repeat 背景图像在纵向和横向上平铺
no-repeat 背景图像不平铺
repeat-x 背景图像在横向上平铺
repeat-y 背景图像在纵向平铺
css实现垂直水平居中repeat:3/*重复3次*/
注意:只能在原图的基础上进行重复!而不能像我们的桌面一样进行扩大填充。
代码如下:
注意:只能在原图的基础上进行重复!而不能像我们的桌面一样进行扩大填充。
代码如下:
默认代码为:body{background-color:#FFFFFF}
换成以下代码
body{background:url(背景图片地址) background-position: center;background-attachment: fixed;repeat-x #FFFFFF}
这是全屏的背景代码~
换成以下代码
body{background:url(背景图片地址) background-position: center;background-attachment: fixed;repeat-x #FFFFFF}
这是全屏的背景代码~
在ASP.NET中把背景图片拉伸
body
{
background-image:url('a.jpg');
background-repeat:repeat
}
{
background-image:url('a.jpg');
background-repeat:repeat
}
body{background:#FFF url(背景图片地址) no-repeat 50% 0;}
no-repeat不重复
50% 0(水平位置 垂直位置) 水平50%既居中,垂直0px
no-repeat不重复
50% 0(水平位置 垂直位置) 水平50%既居中,垂直0px
center 也可
DIV+CSS如何让图片文字混排的情况下垂直居中
<style> div{padding:40px 0px 40px 0px;border:1px solid #ccc;}
</style>
<div>
测试一下
</div>
自制U盘背景
when you believe 2009-10-30 17:36:27 阅读52 评论0 字号:大中小
首先,将自己打算作为背景的图片放入U盘的根目录。将图片命名为一个由字母或数字的名
字。如:abc.jpg,在根目录新建一个文本文件(也就是记事本文件)。输入以下内容(粘贴复制即可):
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论