搜尋
首頁web前端html教學求前台牛人解答关于z-index的问题_html/css_WEB-ITnose

z-indexie7  z-index   ie7  显示一部分

首先上图片,在firefox下面,实现的效果是

鼠标放上去 

这个效果已经实现了。
可是在ie 7 下 ,
原来效果 
鼠标放上去之后

只在图片放在的位置实现了效果,超过图片之后,就显示不出来了。
代码如下:原来的界面是一个图片,鼠标放上去之后是同样的图片加上下面的内容,
<div id="ps_albums">	          	<s:iterator value="categoryProducts" id="products">			        <div class="ps_album">			           	<div class="similar_thumb">			           		<table class="similarPictuer"> <tr><td valign="middle" align="center">				           		<s:if test="#products.productImg1 !=null && #products.productImg1 != ''">				           			<s:if test='#product.productImg1.substring(0,2) == "//" || #product.productImg1.substring(0,4) == "http"'>							    	<img  class="img1 lazy"  src="/static/imghwm/default1.png"  data-src="<s:property value="   #product.productImg1"/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" >" alt="Product Picture" width="95"    style="max-width:90%" onerror="urlImgError(this)"/>							    	</s:if>							    	<s:else>			      						<s:if test="#application['modify_product_image'] == 'true'">			      							<img  class="img1 lazy"  src="/static/imghwm/default1.png"  data-src="<s:property value='#application["   #application["modify_image_link"]'/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" >?url=<s:property value='#products.productImg1'/>&size=95X95" /> 		      						</s:if>		      						<s:else>		        							<img  class="img1 lazy"  src="/static/imghwm/default1.png"  data-src="<s:property value='#application["   #application["netcloud.product.images.path"]'/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" ><s:property value='#products.productImg1'/>"  width="95"    style="max-width:90%" /> 		       						</s:else>		       						</s:else>	       						</s:if>	   							<s:else>								   		<img  src="/static/imghwm/default1.png"  data-src="/static/portal/images/photonotavailable.jpg"  class="lazy"       style="max-width:90%"  style="max-width:90%"  / alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" > 	   							</s:else>   							</td></tr></table>			                <div class="rltd_over"> 									<table class="coversimilarPictuer"> 									<tr><td valign="middle" align="center">						               						                <a href="/portal/epp<s:property value="#products.productId"/>-<s:property value="@com.netcloud.core.utils.TransCodingUtils@replace(#products.productName)"/>.htm">							                <s:if test="#products.productImg1 !=null && #products.productImg1 != ''">								                <s:if test='#product.productImg1.substring(0,2) == "//" || #product.productImg1.substring(0,4) == "http"'>								    				<img  src="/static/imghwm/default1.png"  data-src="<s:property value="  class="lazy"   #product.productImg1"/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" >" alt="Product Picture" width="95"    style="max-width:90%" onerror="urlImgError(this)"/>								    			</s:if>								    			<s:else>						      						<s:if test="#application['modify_product_image'] == 'true'">						      							<img  class="img1 lazy"  src="/static/imghwm/default1.png"  data-src="<s:property value='#application["   #application["modify_image_link"]'/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" >?url=<s:property value='#products.productImg1'/>&size=95X95" /> 					      						</s:if>					      						<s:else>					        							<img  class="img1 lazy"  src="/static/imghwm/default1.png"  data-src="<s:property value='#application["   #application["netcloud.product.images.path"]'/ alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" ><s:property value='#products.productImg1'/>"  width="95"    style="max-width:90%" /> 					       						</s:else>					       						</s:else>			       							</s:if>				   							<s:else>											   		<img  src="/static/imghwm/default1.png"  data-src="/static/portal/images/photonotavailable.jpg"  class="lazy"       style="max-width:90%"  style="max-width:90%"  / alt="求前台牛人解答关于z-index的问题_html/css_WEB-ITnose" > 				   							</s:else>			   							 </a>		   							</td></tr></table>				               				                  <p>				                  <s:if test="#products.condition != null && #products.condition != ''">				                  	Condition :<font color="#008B8B"><n:selectlabel name="#products.condition" list="#{1:'NEW',2:'USED',3:'Manufacturer Refurbished',4:'Seller Refurbished',5:' For Parts or Not Working',6:'Recycles'}" /></font><br/>				                  </s:if>				                  <s:if test="#products.manufOtherName != null && #products.manufOtherName != ''">				                   	Brand: <font color="#008B8B"><s:property value="manufOtherName"/></font><br />				                  </s:if>				                  <s:if test="#products.modelNo != null && #products.modelNo != '' ">				                    Model#: <font color="#008B8B"> <s:property value="modelNo"/></font><br />				                  </s:if>				                  <s:if test="#products.prodLocCity == null && products.prodLocState == null &&  products.prodLocCountry == null">				                  </s:if>				                  <s:else>				                  	Location: <font color="#008B8B">				                  				<s:if test="#products.prodLocCity != null && #products.prodLocCity !=''">				                  				<s:property value="prodLocCity"/>, 				                  				</s:if>				                  				<s:if test="#products.prodLocState != null && #products.prodLocState != ''">				                  				<s:property value="prodLocState"/>,				                  				</s:if> 				                  				<s:if test="#products.prodLocCountry != null && #products.prodLocCountry != '' ">				                  				<s:property value="prodLocCountry"/>				                  				</s:if>				                  			</font>				                  </s:else></p>				                    				          		<input name="productIdS" type="button"  id="productIdSimilar"  onclick="similarToinquiry(<s:property value="productId"/>)"/>			                </div>			             </div>			        </div>	            </s:iterator>	          </div>

搜索了下说是该元素的父元素设置为position: relative; 我从这个元素开始向上到body每层都设置了position: relative; 而且z-index比class = rltd_over的z-index 都小,可是依旧不行,求大神支招

回复讨论(解决方案)

你的样式里有超出隐藏没,如果有先去掉看看

你的样式里有超出隐藏没,如果有先去掉看看 没有的哈,有的话firefox不会成功的,而且我刚刚特看了下,没有的

陳述
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
從文本到網站:HTML的力量從文本到網站:HTML的力量Apr 13, 2025 am 12:07 AM

HTML是一種用於構建網頁的語言,通過標籤和屬性定義網頁結構和內容。 1)HTML通過標籤組織文檔結構,如、。 2)瀏覽器解析HTML構建DOM並渲染網頁。 3)HTML5的新特性如、、增強了多媒體功能。 4)常見錯誤包括標籤未閉合和屬性值未加引號。 5)優化建議包括使用語義化標籤和減少文件大小。

了解HTML,CSS和JavaScript:初學者指南了解HTML,CSS和JavaScript:初學者指南Apr 12, 2025 am 12:02 AM

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

HTML的角色:構建Web內容HTML的角色:構建Web內容Apr 11, 2025 am 12:12 AM

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

HTML和代碼:仔細觀察術語HTML和代碼:仔細觀察術語Apr 10, 2025 am 09:28 AM

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

HTML,CSS和JavaScript:Web開發人員的基本工具HTML,CSS和JavaScript:Web開發人員的基本工具Apr 09, 2025 am 12:12 AM

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

HTML,CSS和JavaScript的角色:核心職責HTML,CSS和JavaScript的角色:核心職責Apr 08, 2025 pm 07:05 PM

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

HTML容易為初學者學習嗎?HTML容易為初學者學習嗎?Apr 07, 2025 am 12:11 AM

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

HTML中起始標籤的示例是什麼?HTML中起始標籤的示例是什麼?Apr 06, 2025 am 12:04 AM

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

See all articles

熱AI工具

Undresser.AI Undress

Undresser.AI Undress

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

AI Clothes Remover

AI Clothes Remover

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

Undress AI Tool

Undress AI Tool

免費脫衣圖片

Clothoff.io

Clothoff.io

AI脫衣器

AI Hentai Generator

AI Hentai Generator

免費產生 AI 無盡。

熱門文章

R.E.P.O.能量晶體解釋及其做什麼(黃色晶體)
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳圖形設置
3 週前By尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您聽不到任何人,如何修復音頻
3 週前By尊渡假赌尊渡假赌尊渡假赌
WWE 2K25:如何解鎖Myrise中的所有內容
4 週前By尊渡假赌尊渡假赌尊渡假赌

熱工具

Dreamweaver CS6

Dreamweaver CS6

視覺化網頁開發工具

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser是一個安全的瀏覽器環境,安全地進行線上考試。該軟體將任何電腦變成一個安全的工作站。它控制對任何實用工具的訪問,並防止學生使用未經授權的資源。

EditPlus 中文破解版

EditPlus 中文破解版

體積小,語法高亮,不支援程式碼提示功能

禪工作室 13.0.1

禪工作室 13.0.1

強大的PHP整合開發環境

WebStorm Mac版

WebStorm Mac版

好用的JavaScript開發工具