1、添加网页的背景图片(拉伸的),代码是什么?
||代码为: {background-image: url(URL)|none}
1,背景颜色 {background-color:数值}。
2,背景重复 {background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y}。
3,背景固定 {background-attachment:fixed|scroll}。
4,背景定位 {background-position:数值|top|bottom|left|right|center}。
5,背影样式 {background:背景颜色|背景图象|背景重复|背景附件|背景位置}。
1、所谓的网页代码,就是指在网页制作过程中需要用到的一些特殊的“语言”,设计人员通过对这些“语言”进行组织编排制作出网页,然后由浏览器对代码进行“翻译”后才是我们最终看到的效果。
2、制作网页时常用的代码有HTML,JavaScript,ASP,PHP,CGI等,其中超文本标记语言(标准通用标记语言下的一个应用、外语简称:HTML)是最基础的网页代码。
2、求设置图片为网页背景的代码
<table width="200" border="1" background="图片地址">
用网页制作工具。。
3、css背景图片代码
|写css背景图片代码可以参考以下:
<html>
<head>
<style type="text/css">
body {background-image:url(abc.jpg);}
</style>
</head>
<body>
</body>
</html>
扩展资料:
1、背景版图片语法权:{background-image: url(url)|none}
2、背景固定语法:{background-attachment:fixed|scroll}
3、背景重复语法:{background-repeat:inherit|no-repeat|repeat|repeat-x|repeat-y}
4、背景定位语法:{background-position:数值|top|bottom|left|right|center}
参考资料来源:网络-CSS语法
4、网页设计DW 怎么添加背景图片代码是多少
不知道你的意思是哪种的背景图片!
1.假如是整张网页的背景图片的话,就是写body的css样式 也就是
body { background: url("图片的地址")}2.一般的假如图片的话
<img src="图片的地址">3.一般div块的地址
5、HTML语言中,设置背景颜色的代码是?
html中设置元素的背景色都是通过CSS中的background 属性来完成。
例如,给整个页面(body)设置背景色:body{background: #ddd;};如果要将图片作为背景色:body{background-image: url(1.jpg);},其中url括号后面的是背景图片的链接。
拓展资料:
background 简写属性在一个声明中设置所有的背景属性。
background可以设置如下属性:
background-color 背景颜色
background-position 背景图像的位置
background-size 背景图片的尺寸
background-repeat 重复背景图像
background-origin 背景图片的定位区域
background-clip 背景的绘制区域
background-attachment 背景图像是否固定或者随着页面的其余部分滚动
background-image 背景图像
如果不设置其中的某个值,也不会出问题,通常建议使用这个属性,而不是分别使用单个属性,因为这个属性在较老的浏览器中能够得到更好的支持,而且需要键入的字母也更少。
代码:
效果:
6、网页设计固定背景图的代码
在<head>里的stytle里的body{}样式表里加入 background-attachment:fixed; 这个就行了 比如说: <style type="text/css"> <!-- body { background-image: url(1280imago001.jpg); background-repeat:no-repeat;background-attachment:fixed; } --> </style> 你试下
7、网页的背景图片的 html 代码怎么写
1、CSS外部样式:抄
body{background:url(1.jpg) repeat-x;} 前景图袭片 平铺
2、html内部样式:
<style type="text/css">
body{background:url(1.jpg) repeat-x;} 前景图片 平铺
</style>
3、html行内样式:
<div style="background:url(www.abc/background.jpg)"></div>
如果能帮到你,请采纳
8、web中将图片设为背景图片的代码是什么?
web中将图片设为背景图片的代码如下:
<html>
<body background="a.jpg">
</body>
</html>
这样就把图片a.jpg设为背景图片了。
<body bgcolor="#CCCCCC">
这个是把背景设成灰色
9、网页设计背景图片代码。
||比如
root比如这样的
想在1.html中使用1.jpg,<img src="../images/1.jpg" />
main.css中使用的话,可以background:url(../../images/1.jpg);