第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

我怎么讓鼠標放到大的div中時邊框變顏色的同時,圖標也改變呢?

我怎么讓鼠標放到大的div中時邊框變顏色的同時,圖標也改變呢?

紅顏莎娜 2018-12-06 22:49:25
<!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> <title> new document </title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="" /> <style type="text/css"> .box{width:1000px;margin:0 auto;height:500px;border:1px solid green;} .tbox{width:150px;height:30px;border:1px solid #585858; margin:10px 10px;} .ptes{width:115px;height:30px;} .tbox1{width:150px;height:30px;border:1px solid red; margin:10px 10px;} .pb{width:30px;height:30px;background-color:#eee;vertical-align:middle;background: url(re_code2.png) no-repeat #EEE 8px 8px;background-size: 15px;} .pb1{width:30px;height:30px;background-color:#eee;vertical-align:middle;background: url(re_code1.png) no-repeat #EEE 8px 8px;background-size: 15px;} </style> <script type="text/javascript"></script> </head> <body style="background-color:#FFF;"> <div class="box"> <div class="tbox" onmouseout="this.className='tbox'" onmousemove="this.className='tbox1'"> <div class="pb" style="float: left;" onmouseout="this.className='pb'" onmousemove="this.className='pb1'"> </div> <div class="ptes" style="float: left;"> <input id="password" name="password" type="password" placeholder=" 請輸入密碼" value="" style="width:100%;height:26px;border-style:none"/> </div> </div> <div> </body> </html>
查看完整描述

10 回答

?
胡說叔叔

TA貢獻1804條經(jīng)驗 獲得超8個贊

js 就可以了

查看完整回答
反對 回復(fù) 2018-12-24
?
慕田峪4524236

TA貢獻1875條經(jīng)驗 獲得超5個贊

mouseHover

查看完整回答
反對 回復(fù) 2018-12-24
?
慕無忌1623718

TA貢獻1744條經(jīng)驗 獲得超4個贊

上面寫著呢 你根本就沒看代碼

查看完整回答
反對 回復(fù) 2018-12-24
?
倚天杖

TA貢獻1828條經(jīng)驗 獲得超3個贊

鼠標的圖標其實就是鼠標狀態(tài)吧,css也可以設(shè)置,但對圖片格式有要求。

查看完整回答
反對 回復(fù) 2018-12-24
?
一只名叫tom的貓

TA貢獻1906條經(jīng)驗 獲得超3個贊

鏈接的hover屬性試試看。

查看完整回答
反對 回復(fù) 2018-12-24
?
瀟湘沐

TA貢獻1816條經(jīng)驗 獲得超6個贊

可以用css樣式來寫出效果,也可以用鼠標移入觸發(fā)事件onmouseover來實現(xiàn)

查看完整回答
反對 回復(fù) 2018-12-24
?
藍山帝景

TA貢獻1843條經(jīng)驗 獲得超7個贊

我現(xiàn)在用的就是onmouseover,但布局是一個大的div包含兩個小div,怎么怎么讓鼠標放到大框任意地方里面的圖標變色?

查看完整回答
反對 回復(fù) 2018-12-24
?
楊魅力

TA貢獻1811條經(jīng)驗 獲得超6個贊

@yangzailu: 把onmouseover這個事件給大的div就可以了

查看完整回答
反對 回復(fù) 2018-12-24
?
明月笑刀無情

TA貢獻1828條經(jīng)驗 獲得超4個贊

@舊城故人: 我已經(jīng)給了 大的div邊框可以 里面的不可以 請認真看代碼呢

查看完整回答
反對 回復(fù) 2018-12-24
?
RISEBY

TA貢獻1856條經(jīng)驗 獲得超5個贊

@yangzailu: 獲取大div里面的小div,然后在大div的onmouseover事件中添加:div1.style.borderColor = '顏色',(假設(shè)變量名為div1)

查看完整回答
反對 回復(fù) 2018-12-24
  • 10 回答
  • 0 關(guān)注
  • 849 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號