1、网页设计背景图片代码。
||比如
root比如这样的
想在1.html中使用1.jpg,<img src="../images/1.jpg" />
main.css中使用的话,可以background:url(../../images/1.jpg);
2、网页设计中怎么让一张图片填充满整个画面 求代码
1、如果楼主只是将其当做一张图片显示,可以通过css控制,如img{width:100%;height:100%;}.
否则需要将其作为网页背景的话可以试试如下方法:
2、如果这张图片为背景图片由于背景图片不具有伸缩性,只能通过别的方法绕着解决,在ie中可以用<body
style="filter:progid:dximagetransform.microsoft.alphaimageloader(src='1.jpg',sizingmethod='scale')">,实现背景拉伸铺满整个浏览器,但其它的浏览器不支持。
这时可以拐个弯,设置两层div,底层div当做背景使用,放置一张图片即可。
<div id="background" style="position:absolute;z-index:-1;width:100%;height:100%;top:0px;left:0px;"><img src="1.jpg" width="100%" height="100%"/></div>
再将网页内容放置到第二层上<div id="content">页面内容</content>
3、网页背景图片默认情况下是重复平铺满整个页面。上面2方法是要求图片不重复,但又得占满浏览器所采用的方法。
3、网页设计 图片轮显的代码
网页设计图片轮显的代码如下:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<SCRIPT src="js/article.js"></SCRIPT>
<link href="css/css.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="312" border="0" align="center" cellpadding="0" cellspacing="0" class="solidbox">
<tr>
<td width="312" height="312" align="center"><TABLE border=0 align="center" cellPadding=0 cellSpacing=0>
<TBODY>
<TR>
<TD><DIV id=oTransContainer
style="FILTER: progid:DXImageTransform.Microsoft.Wipe(GradientSize=1.0,wipeStyle=0, motion='forward'); WIDTH: 220px; HEIGHT: 194px"><A
href="http://www.makewing.com/lanren/"
target=_blank><IMG id=oDIV1
style="DISPLAY: yes;"
height=300 src="images/01.jpg"
width=300 border=0></A><A
href="http://www.makewing.com/lanren/"
target=_blank><IMG id=oDIV2
style="DISPLAY: none;"
height=300 src="images/02.jpg"
width=300 border=0></A><A
href="http://www.makewing.com/lanren/"
target=_blank><IMG id=oDIV3
style="DISPLAY: none;"
height=300 src="images/03.jpg"
width=300 border=0></A><A
href="http://www.makewing.com/lanren/"
target=_blank><IMG id=oDIV4
style="DISPLAY: none;"
height=300 src="images/04.jpg"
width=300 border=0></A></DIV>
</TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td height="22" align="right" valign="top"><script>var MaxImg = 4; fnToggle();</script>
<TABLE cellSpacing=1 cellPadding=0 width=110
border=0>
<TBODY>
<TR>
<TD width=26><A href="javascript:toggleTo(1)"><IMG height=15
src="images/s_1.gif" width=17
border=0></A></TD>
<TD width=26><A href="javascript:toggleTo(2)"><IMG height=15
src="images/s_2.gif" width=17
border=0></A></TD>
<TD width=26><A href="javascript:toggleTo(3)"><IMG height=15
src="images/s_3.gif" width=17
border=0></A></TD>
<TD width=27><A href="javascript:toggleTo(4)"><IMG height=15
src="images/s_4.gif" width=17
border=0></A></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
</table>
</body>
</html>
CSS的代码为:
td {font-size: 12px;}
.solidbox {
BORDER-TOP: #D7D7D7 1px solid;
BORDER-RIGHT: #D7D7D7 1px solid;
BORDER-BOTTOM: #D7D7D7 1px solid;
BORDER-LEFT: #D7D7D7 1px solid;
}
4、求js实现网页截屏效果代码或相关资料(无头绪中)
我之前也有这样的需求..发百度和csdn都没解决
后来还是得用java在后台处理
T.T 祝你好运
5、根据截图写出完整的HTML代码。
<html>
<head><title>在线翻译</title></head>
<body>
<p style="text-align:right; font-size:12px;">
<a href="ask.htm">意见反馈</a>
<a href="navigation.htm">网站导航</a>
</p>
<p style="text-align:center;"><img src="ciba_logo.gif" /></p>
<p>
<h3>词典 句库 翻译 汉语 >></h3><!--不知道那个字体大小为3是啥意思所以放H3-->
<form>
<input size=35 type="text" />
<input type="submit" value="查一下"/>
</form>
<h3>文网文[2008]058号.....剩下的自己写</h3>
</p>
</body>
</html>
6、求这两个网页截图的html代码
你可以直接把这辆个的代码复制下来自己修改一下就好了,都有图了
7、如何通过网页源代码来提取网页中的图片?
可以现在网页源码中找到图片的链接,然后将图片在新窗口打开并进行保存。
1、右击想要提取的图片,在展开的菜单中点击“检查”按钮打开控制台:

2、这时控制台中会跳转到图片的源码位置,将鼠标放在链接上可以查看图片的缩略图,这时右击图片链接,点击“Open in new tab”按钮将图片在新窗口打开:

3、图片在新窗口打开后,右击被打开的图片,在展开的菜单中点击“图片另存为...”按钮即可将图片进行保存:

8、网页设计 图片滚动代码
素材的准备。为了更好的表现网站的风格和特色,具备一些更富表现力和吸引力的图片是必不可少的。同理,准备了一些与网页主题密切相关的图片,用于做为实现图片滚动效果的素材。

打开Dreamweaver8,新建一网页文件,并保存为名为“index.html"文件。


切换至代码编辑界面,输入如下代码:
<body><div id="photo-list"> <ul id="scroll">
<li><a href="#"><img src="images/1.jpg" width="100px" height="100px" alt=""/></a></li>
<li><a href="#"><img src="images/2.jpg" width="100px" height="100px" alt=""/></a></li>
<li><a href="#"><img src="images/3.jpg" width="100px" height="100px" alt=""/></a></li>
<li><a href="#"><img src="images/4.jpg" width="100px" height="100px" alt=""/></a></li>
<li><a href="#"><img src="images/5.jpg" width="100px" height="100px" alt=""/></a></li>
<li><a href="#"><img src="images/6.jpg" width="100px" height="100px" alt=""/></a></li> </ul> </div></body>
对应效果如图所示:


新建一CSS样式表文件,并将该文件保存到与“index.html”相同的目录下,文件名称为“MyStyle.css"。


在新建的样式表文件"MyStyle.css”文件中输入如下代码:
* { padding:0; margin:0;} /*设置所有对像的内边距为0*/
body { text-align:center;} /*设置页面居中对齐*/
#photo-list {
/* 6张图片的宽度(包含宽度、padding、border、图片间的留白)
计算:6*(100+2*2+1*2+9) - 9
之所以减去9是第6张图片的右边留白 */
width:681px;
/* 图片的宽度(包含高度、padding、border)
计算:100+2*2+1*2 */
height:106px;
margin:50px auto;
overflow:hidden; /*溢出部份将被隐藏*/
border:1px dashed #ccc;
}
#photo-list ul { list-style:none;}
#photo-list li { float:left; padding-right:9px;}
#photo-list img { border:1px solid #ddd; background:#fff; padding:2px;}
对应文件内容如图所示:

在网页文件"index.html"中添加对该样式表的引用:
<link rel="stylesheet" type="text/css" href="MyStyle.css">
此时网页效果如图所示:


新建一个JS文件,并将该文件另存为“MoveEffect.js"。


在”MoveEffect.js“文件中输入如下所示代码:
var id = function(el) { return document.getElementById(el); },
c = id('photo-list');
if(c) {
var ul = id('scroll'),
lis = ul.getElementsByTagName('li'),
itemCount = lis.length,
width = lis[0].offsetWidth, //获得每个img容器的宽度
marquee = function() {
c.scrollLeft += 2;
if(c.scrollLeft % width <= 1){ //当 c.scrollLeft 和 width 相等时,把第一个img追加到最后面
ul.appendChild(ul.getElementsByTagName('li')[0]);
c.scrollLeft = 0;
};
},
speed = 50; //数值越大越慢
ul.style.width = width*itemCount + 'px'; //加载完后设置容器长度
var timer = setInterval(marquee, speed);
c.onmouseover = function() {
clearInterval(timer);
};
c.onmouseout = function() {
timer = setInterval(marquee, speed);
};
};

然后在主页文件"index.html”中添加对该“MoveEffect.js”文件的引用。
<script type="text/javascript" src="MoveEffect.js"></script>
代码如图所示:

打开“index.html”网页文件,最终效果如果所示:



9、网页中的截图快捷键是什么?
有四种截屏方式:
第一种: PrScrn 使用这个键截屏,获得的是整个屏幕的图片;专
第二种:Ctrl + PrScrn 使用这个组合键截屏,获得属的是整个屏幕的图片;
第三种:Alt + PrScrn 这个组合键截屏,获得的结果是当前窗口的图片;
第四种:Ctrl+Alt+A 这个组合键截屏,需要在登陆QQ的基础上进行;
第五种:使用专业的截屏软件,例如Snagit,专业软件的截屏效果更加强大。

截屏的其他操作方法:
1、直接按Print Screen,截取整个屏幕到剪切板;按Alt+Print Screen,可以截取当前活动窗口。
2、登陆QQ聊天软件,按Ctrl+Alt+A再选择要截下的区域,可以另存为,也可以选择直接保存到剪切板。
3、登陆飞信,按Ctrl+Alt+P再选择要截下的区域,可以另存为,也可以选择直接保存到剪切板。
4、登陆YY语音,按Alt+A再选择要截下的区域,双击屏幕直接保存到剪切板。
5、登陆阿里旺旺,按Ctrl+Alt+P再选择要截下的区域,可以另存为,也可以选择直接保存到剪切板上。
10、利用div设计网页框架结构代码截图
|<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>镞犳爣棰樻枃妗?/title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="head">
<div id="top">
<div id="top_logo"><img src="Images/logo.jpg" width="203" height="52" /></div>
<div id="top_flower"><img src="Images/Top_Flower.jpg" width="128" height="83" /></div>
<div id="top_title"><img src="Images/top_title.jpg" width="385" height="67" /></div>
<div id="right_conter"><a href="#">Sign in</a> | <a href="#">Join Now!</a> | <a href="#">Help</a></div>
</div>
<div id="Visiting">First Time Visiting?</div>
<div id="loginbar">
<form id="form1" name="form1" method="post" action="">
<div id="loginbar_conter">
<div id="loginbar_conter_left">Sign up for special sales letter and shop with Myeglobal.com
<label>
<input name="textfield" type="text" id="input" value="your email address" size="25" />
</label>
</div>
<div id="login_btn">
<label>
<input type="image" name="imageField" src="Images/btn1.jpg" />
</label>
</div>
<div id="login_right">
<label> </label>
or know more about Myeglobal.com</div>
</div>
</form>
</div>
</div>
<div id="banner">
<div id="banner_pic"><a href="#1"><img src="Images/banner1.jpg" width="229" height="236" border="0" /></a><a href="#2"><img src="Images/banner2.jpg" width="231" height="236" border="0" /></a><a href="#3"><img src="Images/banner3.jpg" width="229" height="236" border="0" /></a></div>
<div id="banner_right">
<div id="banner_right_pic"><img src="Images/left_pic1.jpg" width="244" height="181" /></div>
<div id="banner_right_btn"><a href="#">click here to dress yourself up</a></div>
</div>
</div>
<div id="wrapper">
<div id="main">
<div id="left">
<div id="main_conter1">
<div id="main_title1">
<div id="main_title1_conter"><a href="#">BRIDAL FASHION</a><a name="1" id="1"></a></div>
<div id="main_title1_text">From classic A-line to modern mermaid style and ball gowns too, no matter you're glamorous or romantic, we sorted through 1000s of dress designs to pick the wedding dresses you're dreaming for.</div>
</div>
<div class="main_list">
<ul>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1417970"><img src="Images/proct1.jpg" alt="CindyWedding" width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1417970">Ball Gown Spaghetti Straps
Bridal Gown</a></p>
<span>Price:US$101.20</span></li>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1432184"><img src="Images/proct2.jpg" alt="romanticdresses" width="128" height="166" border="0" /></a>
<p> <a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1432184">Classic Sweatheart Neck Wedding Gown</a></p>
<span>Price: US$88.00</span><br />
</li>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1435490"><img src="Images/proudct3.jpg" alt="romanticdresses " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1435490">Sweetheart Pricess Wedding Dresses</a></p>
<span>Price: US$83.60</span><br />
<img src="Images/5off.gif" width="28" height="17" /></li>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1435520"><img src="Images/proudct4.jpg" alt="romanticdresses " width="128" height="168" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1435520">Custom Strapless Ruffles Wedding Gown</a></p>
<span>Price: US$88.00</span></li>
</ul>
<ul>
<li> <a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438611"><img src="Images/proct13.jpg" alt="CindyWedding" width="126" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438611">New Princess Style Strapless Wedding Dress</a></p>
<span>Price:US $95.70</span><br />
</li>
<li> <a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438627"><img src="Images/proct14.jpg" alt="CindyWedding" width="126" height="166" border="0" /></a>
<p> <a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438627">Strapless Custom Made Wedding Dress</a></p>
<span>Price: US$95.70</span></li>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438739"><img src="Images/proct15.jpg" alt="lovesky " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1438739">Simple V Neck Ruffly Bridal Dresses</a></p>
<span>Price: US$91.85</span> </li>
<li><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1440235"><img src="Images/proct16.jpg" alt="lovesky " width="127" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/Browse/proct/proctdetail.aspx?flag=1&pid=1440235">Elegant Empire Waistline Bridal Dress</a></p>
<span>Price: US$84.50</span></li>
</ul>
</div>
<div class="main_conter1_more"><br />
</div>
</div>
<div id="main_conter2">
<div id="main_title2">
<div id="main_title2_conter"><a href="#">FORMAL EVENT</a><a name="2" id="2"></a></div>
<div id="main_title2_text">Got a sociality event invitation? Find your perfect formal gown from DressilyMe formal affair selection. It ranges from black tie affair to cocktail party, and hundreds of designs you're guaranteed to be attractive.</div>
<div class="main_list">
<ul>
<li><a href="http://www.myeglobal.com/proctdetail-1427112-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html"><img src="Images/proct5.jpg" alt="romanticdresses " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1427112-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html">Elegant Deep-V Raised Waistline Dress</a></p>
<span>Price: US$82.50</span></li>
<li><a href="http://www.myeglobal.com/proctdetail-1427153-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html"><img src="Images/proct6.jpg" alt="romanticdresses " width="128" height="166" border="0" /></a>
<p> <a href="http://www.myeglobal.com/proctdetail-1427153-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html">Custom Stylish V Neck Floor Length Dress</a></p>
<span>Price: US$82.50</span> </li>
<li><a href="http://www.myeglobal.com/proctdetail-1429448-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html"><img src="Images/proct7.jpg" alt="romanticdresses " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1429448-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html">Glamorous Black Basque Evening Dress</a></p>
<span>Price: US$83.60</span><br />
<img src="Images/5off.gif" width="28" height="17" /></li>
<li><a href="http://www.myeglobal.com/proctdetail-1431618-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html"><img src="Images/proct8.jpg" alt="romanticdresses " width="128" height="168" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1431618-china-09Newest-fashion-sytel-Sexy-Beautiful-girls--Prom-Dress-Evening-Dress-top-qualit.html">Custom Sweethear Ruffly Cocktail Dress</a></p>
<span>Price: US$83.60</span><br />
<img src="Images/5off.gif" width="28" height="17" /></li>
</ul>
<ul>
<li><a href="http://www.myeglobal.com/proctdetail-1436892-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html"><img src="Images/proct9.jpg" alt="CindyWedding " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1436892-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html">Strapless Knee Length A-line Cocktail Dress</a></p>
<span>Price: US$55.00</span><br />
</li>
<li><a href="http://www.myeglobal.com/proctdetail-1437023-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html"><img src="Images/proct10.jpg" alt="CindyWedding " width="128" height="166" border="0" /></a>
<p> <a href="http://www.myeglobal.com/proctdetail-1437023-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html">Elegant Queen Anne Neckline Formal Gown</a></p>
<span>Price: US$71.50</span></li>
<li><a href="http://www.myeglobal.com/proctdetail-1437032-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html"><img src="Images/proct11.jpg" alt="CindyWedding " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1437032-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html">Satin Halter Neck Mermaid Dresses</a></p>
<span>Price: US$71.50</span><br />
</li>
<li><a href="http://www.myeglobal.com/proctdetail-1437045-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html"><img src="Images/proct12.jpg" alt="CindyWedding " width="128" height="166" border="0" /></a>
<p><a href="http://www.myeglobal.com/proctdetail-1437045-china-Brand-New-Custom-Made-Prom-Dress-Evening-Dress-with-top-quality-and-fashion-styl.html">Spaghetti Straps Evening Dress With Sashes</a></p>
<span>Price:US $71.50</span></li>
</ul>
</div>
<div class="main_conter2_more"></div>
</div>
</div>
<div id="main_conter3">
<div id="main_title3">
<div id="main_title3_conter"><a href="#">GIRLS'PROM DRESSES</a><a name="3" id="3"></a></div>
<div id="main_title3_text">Ask any girl what is the most important aspect in their long plans for prom night and chances are that you will always hear prom dress. Now it is the time to go prom dress shopping simply online from DressilyMe prom collection.</div>
</div>
</body>
</html>
