CuDemVN.Wap.Sh



![]() | ![]() ![]() ![]() |
Bạn không phải lo về vấn đề này chỉ cần dùng lệnh javascript để xử lý nó. ta sẽ dùng code chống thu phóng trên trình duyệt PC nhé!
Cách 1
<script>document.firstElementChild.style.zoom = "reset";</script>
Cách 2
<script>
$(window).keydown(function(event) {
if((event.keyCode == 107 && event.ctrlKey == true) || (event.keyCode == 109 && event.ctrlKey == true)) {
event.preventDefault();
}
$(window).bind('mousewheel DOMMouseScroll', function(event) {
if(event.ctrlKey == true){
event.preventDefault();
}
});
});
</script>
Nguồn: KenAn

Đánh giá: 4.5/ 5, 560 bình chọn
