亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

我想請教下拉的元素怎么于父元素div aa定位?? 這是我自己簡單寫的代碼。求拯救 =.=

我想請教下拉的元素怎么于父元素div aa定位?? 這是我自己簡單寫的代碼。求拯救 =.=

什么名字都被占用 2016-07-28 16:05:18
<!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><style type="text/css">*{margin:0 auto;}.aa{?? ?width:102px;?? ?height:48px;?? ?margin-top:20px;?? ?font-size:14px;?? ?line-height:48px;?? ?text-align: center;?? ?border:1px solid #0F6;?? ?position: relative;?? ?}.aa ul {?? ?position: absolute;?? ?width:102px;?? ?margin:10px;?? ?}</style><script sype="text/javascript"><!--var li=document.getElementsByName("li");-->function down(){???? ?    document.getElementById("pull_1").style.display = "none";    document.getElementById("pull_2").style.display = "none";    document.getElementById("pull_3").style.display = "none";  }  function pull(appearList){    down();?? ?}function aa(){?? ?/*alert('aa');*/?? ?  document.getElementById("pull_1").style.display = "block";    document.getElementById("pull_2").style.display = "block";    document.getElementById("pull_3").style.display = "block";  }  function pull(appearList){???? /* alery('aa');*/    aa();?? ?}?? ?</script></head><body><div onmouseover="aa()" onmouseout="down()" class="aa">首頁<ul ><li id="pull_1" style="display:none" >sdjkhcld</li><li id="pull_2" style="display:none">dcnld c</li><li id="pull_3" style="display:none" >dshc;lsc</li></ul></div></body></html>
查看完整描述

1 回答

已采納
?
喵冬

TA貢獻1條經驗 獲得超0個贊

.aa ul已經設置了絕對定位,剩下的就是給它設置top,left值。

查看完整回答
反對 回復 2016-07-28
  • 1 回答
  • 0 關注
  • 1154 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號