Line 1: | Line 1: | ||
{{UESTC-China/bootstrap.css}} | {{UESTC-China/bootstrap.css}} | ||
<html> | <html> | ||
− | <script> | + | <script>//去除wiki顶部部分覆盖ID |
$(document).ready(function(){ | $(document).ready(function(){ | ||
$("#HQ_page").attr('id',''); | $("#HQ_page").attr('id',''); | ||
Line 9: | Line 9: | ||
<head> | <head> | ||
<style> | <style> | ||
− | #home_logo,#top_title,#top{ | + | #home_logo,#top_title,#top{//去除wiki顶部部分覆盖id,其中#top影响模态框 |
display: none; | display: none; | ||
} | } | ||
− | #globalWrapper{ | + | #globalWrapper{//去除wiki底部定义多余的padding |
padding-bottom:0; | padding-bottom:0; | ||
} | } | ||
Line 18: | Line 18: | ||
margin:0; | margin:0; | ||
} | } | ||
− | .dropdown a:hover {color:#45bcf9 !important;} | + | .dropdown a:hover {color:#45bcf9 !important;}//导航栏hover变色 |
@media(max-width:1022px){ | @media(max-width:1022px){ | ||
Line 213: | Line 213: | ||
if($(window).width()<=1022) | if($(window).width()<=1022) | ||
{ | { | ||
− | $(".dropdown").unbind();//防止屏幕由大变小造成事件仍在 | + | $(".dropdown").unbind();//防止屏幕由大变小造成事件仍在 (折叠后hover时 open 应该去除) |
} | } | ||
else | else | ||
Line 229: | Line 229: | ||
}, 1000); | }, 1000); | ||
return false; | return false; | ||
− | }); | + | }); //部分链接同一页面锚点的按钮缓动 |
$('.up').click(function() { | $('.up').click(function() { | ||
Line 235: | Line 235: | ||
scrollTop: '0' | scrollTop: '0' | ||
}, 1000); | }, 1000); | ||
− | }); | + | }); //up缓动 |
var $p=$('p'); | var $p=$('p'); | ||
− | $p[$p.length-1].remove(); | + | $p[$p.length-1].remove();//去除wiki底部框架外最后一个p 造成的底部空行 |
}); | }); | ||
</script> | </script> |
Revision as of 03:57, 12 October 2019