效果就是这样的,跪等啊 。。。。。。。。
回复讨论(解决方案)
要配合js去写
给这么点分,没动力啊
给这么点分,没动力啊
可以加分的
你直接写一个img,size小一点,然后指上去,把你那个大一点的img的url变成你小的那个img的url,
如果你有分大图片和小图片的话,就直接把大的img的url变成大文件的url就可以了!
你直接写一个img,size小一点,然后指上去,把你那个大一点的img的url变成你小的那个img的url,
如果你有分大图片和小图片的话,就直接把大的img的url变成大文件的url就可以了!
能帮帮我吗 跪求啊 急死我了
<script type="text/javascript"> function aa(url){ document.getElementById("test").src=url } </script> <body> <img src="/static/imghwm/default1.png" data-src="imgad.jpg" class="lazy" style="max-width:90%" style="max-width:90%" onmouseover="aa(this.src)" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > <img src="/static/imghwm/default1.png" data-src="" style="max-width:90%"lazy" width="100" style="max-width:90%" id="test"/ alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > </body>
你看看吧!
<script type="text/javascript"> function aa(url){ document.getElementById("test").src=url } </script> <body> <img src="/static/imghwm/default1.png" data-src="imgad.jpg" class="lazy" style="max-width:90%" style="max-width:90%" onmouseover="aa(this.src)" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > <img src="/static/imghwm/default1.png" data-src="" style="max-width:90%"lazy" width="100" style="max-width:90%" id="test"/ alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > </body>
你看看吧!
我的意思是鼠标移动在小图上面 右边显示大图
<script type="text/javascript"> function aa(url){ document.getElementById("test").src=url } </script> <body> <img src="/static/imghwm/default1.png" data-src="imgad.jpg" class="lazy" style="max-width:90%" style="max-width:90%" onmouseover="aa(this.src)" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > <img src="/static/imghwm/default1.png" data-src="" style="max-width:90%"lazy" width="100" style="max-width:90%" id="test"/ alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > </body>
你看看吧!
我的意思是鼠标移动在小图上面 右边显示大图
我只是给你一点实现的代码,你自己弄到你里面去啊!
我这个是上下,图片大小自己设置的.
<!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></head><style type="text/css">body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td,div{margin:0;padding:0}body,button,input,select,textarea{font:100%/1.5 Arial,Helvetica,tahoma,\5b8b\4f53,sans-serif}h1,h2,h3,h4,h5,h6{font-size:100%}address,cite,dfn,em,var{font-style:normal}code,kbd,pre,samp{font-family:courier new,courier,monospace}small{font-size:12px}ul,ol{list-style:none}a{text-decoration:none;color:#fff}a:hover{color:#fff;text-decoration:none}a:focus{outline:none;-moz-outline:none}sup{vertical-align:text-top}sub{vertical-align:text-bottom}legend{color:#000}fieldset,img,a{border:0 none;outline:0 none}button,input,select,textarea{font-size:100%}table{border-collapse:collapse;border-spacing:0}input,textarea{outline:none}abbr,article,aside,bb,datagrid,datalist,details,dialog,eventsource,figure,figcaption,footer,header,mark,menu,meter,nav,output,progress,section,time{display:block;height:auto}textarea{resize:none}/* 清除浮动 */.clearfix:after{clear:both;content:"\20";display:block;font-size:0;height:0;line-height:0;visibility:hidden}.clearfix{display:block;zoom:1}.box{width:1200px;position:relative}.list{margin:20px 0 0 30px}.list li{float:left;margin-right:20px}.list li img{width:120px;height:80px}.showbox{position:absolute;top:0;right:0}#showimg{width:360px;height:300px}</style><body><div class="box"> <ul class="list clearfix" id="list"> <li><img src="/static/imghwm/default1.png" data-src="img/1.jpg" class="lazy" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" ></li> <li><img src="/static/imghwm/default1.png" data-src="img/2.png" class="lazy" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" ></li> <li><img src="/static/imghwm/default1.png" data-src="img/3.jpg" class="lazy" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" ></li> <li><img src="/static/imghwm/default1.png" data-src="img/4.png" class="lazy" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" ></li> <li><img src="/static/imghwm/default1.png" data-src="img/5.png" class="lazy" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" ></li> </ul> <div class="showbox"> <img src="/static/imghwm/default1.png" data-src="" id=" class="lazy" id="showimg" / alt="鼠标移动左边的小图,右边显示大图,求大神,在线等啊!_html/css_WEB-ITnose" > </div></div><script type="text/javascript"> var url = "" var li = document.getElementById("list").getElementsByTagName("img"); for(var i=0; i<li.length; i++){ li[i].onmouseover = function(){ url = this.src; document.getElementById("showimg").src = url; } }</script></body></html>
CSS就可以了

WebDevelovermentReliesonHtml,CSS和JavaScript:1)HTMLStructuresContent,2)CSSStyleSIT和3)JavaScriptAddSstractivity,形成thebasisofmodernWebemodernWebExexperiences。

HTML的作用是通過標籤和屬性定義網頁的結構和內容。 1.HTML通過到、等標籤組織內容,使其易於閱讀和理解。 2.使用語義化標籤如、等增強可訪問性和SEO。 3.優化HTML代碼可以提高網頁加載速度和用戶體驗。

htmlisaspecifictypefodyfocusedonstructuringwebcontent,而“代碼” badlyLyCludEslanguagesLikeLikejavascriptandPytyPythonForFunctionality.1)htmldefineswebpagertuctureduseTags.2)“代碼”代碼“ code” code code code codeSpassSesseseseseseseseAwiderRangeLangeLangeforLageforLogageforLogicIctInterract

HTML、CSS和JavaScript是Web開發的三大支柱。 1.HTML定義網頁結構,使用標籤如、等。 2.CSS控製網頁樣式,使用選擇器和屬性如color、font-size等。 3.JavaScript實現動態效果和交互,通過事件監聽和DOM操作。

HTML定義網頁結構,CSS負責樣式和佈局,JavaScript賦予動態交互。三者在網頁開發中各司其職,共同構建豐富多彩的網站。

HTML適合初學者學習,因為它簡單易學且能快速看到成果。 1)HTML的學習曲線平緩,易於上手。 2)只需掌握基本標籤即可開始創建網頁。 3)靈活性高,可與CSS和JavaScript結合使用。 4)豐富的學習資源和現代工具支持學習過程。

AnexampleOfAstartingTaginHtmlis,beginSaparagraph.startingTagSareEssentialInhtmlastheyInitiateEllements,defiteTheeTheErtypes,andarecrucialforsstructuringwebpages wepages webpages andConstructingthedom。

如何設計菜單中的虛線分割效果?在設計菜單時,菜名和價格的左右對齊通常不難實現,但中間的虛線或點如何...


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

Dreamweaver CS6
視覺化網頁開發工具

SecLists
SecLists是最終安全測試人員的伙伴。它是一個包含各種類型清單的集合,這些清單在安全評估過程中經常使用,而且都在一個地方。 SecLists透過方便地提供安全測試人員可能需要的所有列表,幫助提高安全測試的效率和生產力。清單類型包括使用者名稱、密碼、URL、模糊測試有效載荷、敏感資料模式、Web shell等等。測試人員只需將此儲存庫拉到新的測試機上,他就可以存取所需的每種類型的清單。

PhpStorm Mac 版本
最新(2018.2.1 )專業的PHP整合開發工具

ZendStudio 13.5.1 Mac
強大的PHP整合開發環境

SublimeText3 Linux新版
SublimeText3 Linux最新版