background-color 背景颜色 例如:background-color:red background-image 背景图片 例如:background-image:url(图片路径) background-repeat 背景图片是否平铺 取值:no-repeat/不平铺 repeat-x ...
分类:
Web程序 时间:
2017-07-07 22:38:36
阅读次数:
280
http://blog.sina.com.cn/s/blog_427cf00b0102vp0j.html 之前在做连连看游戏中,也用到贴图坐标,当时我们讲到,不管是平铺(Tiling)还是偏移(Offset),我们参考的基准都是原始的那张图,Tiling配合Offset,Tiling负责截取,Off ...
分类:
编程语言 时间:
2017-06-30 22:27:25
阅读次数:
181
新增属性: background-clip:指定背景的显示范围 background-origin:指定绘制背景图像时的起点 background-size:指定背景中图像的尺寸 background-break:指定内联元素的背景图像进行平铺时的循环方式 background-clip属性 在HT ...
分类:
Web程序 时间:
2017-06-30 15:43:00
阅读次数:
214
以LinearLayout为例,它提供的background属性将会将背景图片拉伸,相当难看。其实我们仅仅需做少量的改动就能够实现web编程中css背景图片的效果。来试试吧。 创建反复的背景图片 在drawable文件夹下创建一个repeat_bg.xml: <?xml version="1.0" ...
分类:
移动开发 时间:
2017-06-17 20:47:07
阅读次数:
242
背景: background-color:背景颜色 background-image:背景图片,在页面中背景图在背景颜色上边 background-repeat:背景图片的平铺方式 常有: background-repeat:no-repeat——不平铺 :repeat——平铺(默认) :repea ...
分类:
其他好文 时间:
2017-06-13 16:59:03
阅读次数:
146
样式属性 [注:黑色加粗部分比较重要,要留心】 一.背景: background-color:背景色 * background-image:url(路径) 背景图片* background-repeat:背景图片的平铺方式 其中包括 no-repeat,不平铺;repeat,平铺;repeat-x, ...
分类:
其他好文 时间:
2017-06-10 22:42:01
阅读次数:
352
widthheightbackground color 背景颜色background image 背景图片 background repeat 背景图片平铺background position 背景图片位置 top bottom left right background-attachment 背 ...
分类:
其他好文 时间:
2017-06-10 21:36:24
阅读次数:
193
1、大小:width:宽;heigh:高 2、背景:1)background-color:背景颜色 2)background-image:背景图片url路径 3)background-repeat:图片的平铺方式。no-repeat:不平铺,repeat:平铺,repeat-x:水平平铺,repea ...
分类:
Web程序 时间:
2017-06-10 18:20:28
阅读次数:
270
Web浏览器在计算有效宽度时会考虑浏览器窗口的打开宽度。如果你不给宽度设定任何缺省值,那浏览器会自动将页面内容平铺填满整个横向宽度。而当你设置一个页面元素的高度(height)为100%时,期望这样元素能撑满整个浏览器窗口的高度,但大多数情况下,这样的做法没有任何效果。你知道为什么height:10 ...
分类:
Web程序 时间:
2017-05-06 11:44:53
阅读次数:
205
<!doctype html> <html> <head> <meta charset="utf-8"> <title>无标题文档</title> <style type="text/css"> #rd,#st{ height:100px; border-width:30px;} #rd{ bord ...
分类:
其他好文 时间:
2017-05-05 00:50:41
阅读次数:
189