Line 5: | Line 5: | ||
<link href="https://2019.igem.org/Template:Tongji_Software/css/ClearDefaultCss_css?action=raw&ctype=text/css" rel="stylesheet"> | <link href="https://2019.igem.org/Template:Tongji_Software/css/ClearDefaultCss_css?action=raw&ctype=text/css" rel="stylesheet"> | ||
<script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script> | <script>document.documentElement.className="js";var supportsCssVars=function(){var e,t=document.createElement("style");return t.innerHTML="root: { --tmp-var: bold; }",document.head.appendChild(t),e=!!(window.CSS&&window.CSS.supports&&window.CSS.supports("font-weight","var(--tmp-var)")),t.parentNode.removeChild(t),e};supportsCssVars()||alert("Please view this demo in a modern browser that supports CSS Variables.");</script> | ||
− | |||
− | |||
<script src="https://2019.igem.org/Template:Tongji_Software/js/modernizer_js?action=raw&ctype=text/javascript"></script> <!-- Modernizr --> | <script src="https://2019.igem.org/Template:Tongji_Software/js/modernizer_js?action=raw&ctype=text/javascript"></script> <!-- Modernizr --> | ||
Line 13: | Line 11: | ||
#content { padding:0px; width:100vw; height:100h; margin-top:-4vh; margin-left:-0.4vw;} | #content { padding:0px; width:100vw; height:100h; margin-top:-4vh; margin-left:-0.4vw;} | ||
<!--主体背景--> | <!--主体背景--> | ||
− | |||
</style> | </style> | ||
Line 32: | Line 29: | ||
font-family: "Source Sans Pro", sans-serif; | font-family: "Source Sans Pro", sans-serif; | ||
color: rgba(2, 23, 37, 0.7); | color: rgba(2, 23, 37, 0.7); | ||
− | |||
overflow: hidden; 溢出隐藏 | overflow: hidden; 溢出隐藏 | ||
/*background: url("../img/cover.jpg") center no-repeat;*/ | /*background: url("../img/cover.jpg") center no-repeat;*/ | ||
Line 39: | Line 35: | ||
background-color:black; | background-color:black; | ||
} | } | ||
− | + | body.overflow-hidden { | |
when primary navigation is visible, the content in the background won't scroll | when primary navigation is visible, the content in the background won't scroll | ||
overflow: hidden; | overflow: hidden; | ||
− | } | + | } |
a { | a { |
Revision as of 11:07, 6 October 2019
HAVE A TRY