background-repeat
答:color 颜色值可以是颜色名称、rgb 值或者十六进制数。transparent 默认。背景颜色为透明。例:body{background-color: #00FF00}1.background-image:{URL(url)} 把图像设置为背景。url(URL) 指向图像的路径。none 默认。无背景图像。例:body{background-image: url(pic.jpg);}2.background-repea...
答:background-repeat: no-repeat; 横纵都不重复 background-repeat: repeat-y; 纵重复,横不重复 background-repeat: repeat-x;横重复,纵不重复
答:html中设置元素的背景色都是通过CSS中的background 属性来完成。例如,给整个页面(body)设置背景色:body{background: #ddd;};如果要将图片作为背景色:body{background-image: url(1.jpg);},其中url括号后面的是背景图片的链接。
答:1、设置背景图片只需在css样式中设置backgroud-image属性: body{ background-image:url(你的图片地址);background-position:center;background-repeat:repeat-y;} 2、其中, background-image:url(你的图片地址)表示背景图片的存放路径;background-position:表示的是背景图片的位置,主要有top(上)、b...
答:background 属性在一个声明中设置所有的背景属性。语法:Object.style.background=background-color background-image background-repeat background-attachment background-position 参数 描述 值 background-color 设置元素的背景色。color-name color-rgb color-hex transparent background-image 设置背...
答:前边说的好给力,你这个css的意思简单来说就1句话,设置背景图片的重复样式为不重复,也就是说背景图片不平铺,只显示一张
答:首先,上面的写法“background-repeat: repeat-x 0 0”是无效的。只有这样写“background: repeat-x 0 0”才是有效的。意思就是背景以X轴(横向)平铺,并且起始平铺的位置是x坐标为0,y坐标为0,就是左上角横向平铺。如果换成“background: repeat-x 0 -50px”的话就是Y坐标为负的50像素...
答:1、首先将作文内容编辑在一个word文档里。2、然后在插入菜单中,点击“图片”按钮。3、然后在电脑文件夹中选择目标图片,进行插入。4、然后选中图片,设置其文字环绕方式为“衬于文字下方”。5、然后设置图片尺寸为word文档页面大小,总之是要图片覆盖整个页面。6、最后进行打印预览进行效果预览。这样就可以...
答:这个目前的css3及以前的css规则中没有提及到。目前能够对背景进行的操作就是横向平铺(background-repeat:repeat-x)、纵向平铺(background-repeat:repeat-y)、完全平铺(background-repeat:repeat/不填写)、背景图大小(background-size)、背景定位区域(background-origin)、多重背景图片(background-...
答:全部简写 body {background:url(本地文件路径名/图片名称) no-repeat;} no-repeat;不重复 no-repeat left top;不重复于盒子左上方 no-repeat right top;不重复于盒子右上方 no-repeat right bottom;不重复于盒子右下方 repeat-x;横向平铺 repeat-x bottom;横向平铺盒子底部 repeat-y;纵向平铺 ...
网友评论:
景陶15951539330:
淘宝店铺装修怎么固定背景 -
45732郭琼
: 进入店铺装修,看到店招下面的导航模块(如下图)点击编辑---显示设置接着在下面输入代码body{background-image:url(这里就黏贴图片空间里你要作为背景的图片地址);background-repeat:no-repeat;background-position:center;background-attachment:fixed;}按“确定”就OK啦最后如果还不显示的话就点击左上角装修---样式管理---背景设置---页面设置---所有页面---页面背景色不打勾(也就是不显示)---背景图不上传还有什么不懂的就问我啊,希望能帮到你!!!
景陶15951539330:
CSS 请教background - repeat: repeat - x 0 0 -
45732郭琼
: 首先,上面的写法“background-repeat: repeat-x 0 0”是无效的. 只有这样写“background: repeat-x 0 0”才是有效的. 意思就是背景以X轴(横向)平铺,并且起始平铺的位置是x坐标为0,y坐标为0,就是左上角横向平铺. 如果换成“...
景陶15951539330:
HTML如何设置背景图片,图片不会重复显示 -
45732郭琼
: background-image 这个属性哈 style
景陶15951539330:
如何在DW中设置固定背景图? -
45732郭琼
: 背景固定代码整合 右上固定専用.<STYLE TYPE="text/css"><!-- BODY{ background-image:url("背景のURL"); background-position:100% 0%; background-repeat:no-repeat; background-attachment:fixed;}--></STYLE> 右下固定専用.***...
景陶15951539330:
CSS中我在body里加入背景,background - image: url(image/contentbg.gif)这样的话他会在Y方向给我重复 -
45732郭琼
: background: url(image/contentbg.gif) repeat-x; background-image不能简写属性 如果你非要写background-image,应该这样写:{ background-image: url(image/contentbg.gif) ; background-repeat:repeat-x; }
景陶15951539330:
css里div层和浏览器页面之间会有个空隙是怎么回事?如图. -
45732郭琼
: 设置div最外面不是还有一层body么?,一般都是对body这样设置 body{ margin:0px; padding:0px; }
景陶15951539330:
DW怎么让插入的背景图片居中而不是平铺,怎么该 -
45732郭琼
: body{ background-image:url(1.jpg); background-position:center center;background-repeat:no-repeat;}建议用简写body{ background:url(1.jpg) center center no-rep
景陶15951539330:
html5 移动端怎么固定背景图片 -
45732郭琼
: 首页要铺满背景:background-size: auto(原始图片大小) || number(数值) || percentage(百分比) || cover(放大铺满) || contain(缩小铺满) 其实固定背景:background-attachment: fixed;
景陶15951539330:
谈谈CSS Sprite是什么?及这个技术的优缺点. -
45732郭琼
: 通俗点讲CSS Sprite就是将多个背景图片拼合到一个图片上.然后在CSS里通过position定义到该图片上,实现多个位置的背景,一张图片搞定 如: .div,.current{background:url(a.gif) no-repeat} .current{background-position:10px 10px} 好处就是浏览器只需要请求一次图片就行,如果多个图片,就要讲求多次. 缺点就是拼合的时候,比较麻烦,要有耐心,当然也是可以利用某些工具来完全. 类似这样的,就是CSS Sprite
景陶15951539330:
<li>标签中的样式表问题?
45732郭琼
: .main ul{margin:0px;padding:0px;list-style:none; } .main ul li{ background:url("images/k.jpg") no-repeat; //看看你的图片路径对不对 width:98px; height:33px;line-height:33px;} <div class="main"><ul><li>1234567897</li><ul> </div> 如果不行,请联系我,QQ:378305899