body {
margin: 0;
padding: 0
}
#ul1 {
width: 130px;
height: 120px;
padding: 10px 3px;
background: #fff;
border: #ACA899 1px solid;
display: none;
position: absolute;
left: 0;
top: 0;
}
#ul1 li {
width: 130px;
height: 28px;
line-height: 28px;
font-size: 14px;
border-bottom: #ACA899 1px dashed;
text-align: center;
list-style: none
}
#ul1 li:hover {
background: #316AC5
}
window.onload = function () {
var ul = document.getElementById("ul1");
document.oncontextmenu = function (event) {
var l = event.clientX;
var t = event.clientY;
ul.style.display = "block";
ul.style.left = l + 'px';
ul.style.top = t - 16 + 'px';
return false;
};
document.onclick = function () {
ul.style.display = "none"
}
}
- 菱땍屢塘숩꽉데
- 菱땍屢塘숩꽉데
- 菱땍屢塘숩꽉데
- 菱땍屢塘숩꽉데
一键复制
编辑
Web IDE
原始数据
按行查看
历史