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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

為什么右鍵菜單插件的contextmenu的保存和退出的div一開始沒有顯示在頁面中,CSS也沒看到display:none,求賜教???

html 代碼

<!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>右鍵菜單插件</title>

? ? ? ? <link href="http://idcbgp.cn/data/jquery.contextmenu.css" rel="stylesheet" type="text/css" />

? ? ? ? <link href="style.css" rel="stylesheet" type="text/css" />

? ? ? ? <script type="text/javascript" src="http://idcbgp.cn/data/jquery-1.8.2.min.js"></script>

? ? ? ? <script src="http://idcbgp.cn/data/jquery.contextmenu.js" type="text/javascript"></script>

? ? </head>

? ??

? ? <body>

? ? ? ? <div id="divtest">

? ? ? ? ? ? <div class="title"><span class="fl">點(diǎn)擊右鍵</span></div>

? ? ? ? ? ? <div class="content">

? ? ? ? ? ? ? ? <input id="btnSubmit" type="button" value="提交" />

? ? ? ? ? ? ? ? <div class="tip"></div>

? ? ? ? ? ? </div>

? ? ? ? ? ? <div class="contextMenu" id="sysMenu">

? ? ? ? ? ? ? ? <ul>

? ? ? ? ? ? ? ? ? ? <li id="Li3"><img src="http://img1.sycdn.imooc.com//52e4b34b0001bb6d00160016.jpg" alt="" />保存</li>

? ? ? ? ? ? ? ? ? ? <li id="Li4"><img src="http://img1.sycdn.imooc.com//52e4b3680001424900160016.jpg" alt="" />退出</li>

? ? ? ? ? ? ? ? </ul>

? ? ? ? ? ? </div>

? ? ? ? </div>

? ? ? ? <script type="text/javascript">

? ? ? ? ? ? $(function () {

? ? ? ? ? ? ? ? $("#divtest").contextMenu('sysMenu',

? ? ? ? ? ? ? ? ? { bindings:

? ? ? ? ? ? ? ? ? ? ?{

? ? ? ? ? ? ? ? ? ? ? ? ?'Li3': function (Item) {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$(".tip").show().html("您點(diǎn)擊了“保存”項(xiàng)");

? ? ? ? ? ? ? ? ? ? ? ? ?},

? ? ? ? ? ? ? ? ? ? ? ? ?'Li4': function (Item) {

? ? ? ? ? ? ? ? ? ? ? ? ? ? ?$(".tip").show().html("您點(diǎn)擊了“退出”項(xiàng)");

? ? ? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? ? ?}

? ? ? ? ? ? ? ? ? });

? ? ? ? ? ? });

? ? ? ? </script>

? ? ? ? </body>

</html>

加粗部分沒有顯示出來

下面是CSS

#divtest

{

? ? width: 282px;

}

#divtest .title

{

? ? padding: 8px;

? ? background-color: Blue;

? ? color: #fff;

? ? height: 23px;

? ? line-height: 23px;

? ? font-size: 15px;

? ? font-weight: bold;

}

#divtest .content

{

? ? padding: 8px 0px;

? ? background-color: #fff;

? ? font-size: 13px;

}

#divtest .content .tip

{

? ? text-align: center;

? ? border: solid 1px #ccc;

? ? background-color: #eee;

? ? margin: 20px 0px;

? ? padding: 8px;

? ? display: none;

}

.fl

{

? ? float: left;

}

.fr

{

? ? float: right;

}


正在回答

2 回答

<head>里邊引用了一個(gè)這個(gè)css<link href="http://idcbgp.cn/data/jquery.contextmenu.css" rel="stylesheet" type="text/css" /> 內(nèi)容為

.contextMenu {display:none}
ul li {font-size:9pt}

4 回復(fù) 有任何疑惑可以回復(fù)我~
#1

慕粉4345620 提問者

看得真仔細(xì),謝謝
2017-03-17 回復(fù) 有任何疑惑可以回復(fù)我~
#2

qq_叔山無趾_0 回復(fù) 慕粉4345620 提問者

你不說我還沒注意哈哈
2017-03-17 回復(fù) 有任何疑惑可以回復(fù)我~
#3

qq_晚安_33

把<link href="http://idcbgp.cn/data/jquery.contextmenu.css" rel="stylesheet" type="text/css" />刪除。效果沒變
2017-08-11 回復(fù) 有任何疑惑可以回復(fù)我~

此插件會(huì)自動(dòng)隱藏id="contextMenu"的元素

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

觸動(dòng)聆聽

是class,不是id
2017-11-04 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么右鍵菜單插件的contextmenu的保存和退出的div一開始沒有顯示在頁面中,CSS也沒看到display:none,求賜教???

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

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