在使用Axure RP时有时会用到右键操作,但是在网页右键打开的是网页的菜单,无法正常进行右键功能
顶部菜单打开【发布】>【生成HTML 文件】,点击【Web字体】>【+】
选择新建的字体,点击@font-face,在下方填入代码,点击关闭就可以了,代码贴在文章末尾。
</style>
<script>
document.oncontextmenu = function (event){
if(window.event){
event = window.event;
}try{
var the = event.srcElement;
if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
return false;
}
return true;
}catch (e){
return false;
}
}
</script><style>