Line 82: | Line 82: | ||
//加载页面 | //加载页面 | ||
$(document).ready(function() { | $(document).ready(function() { | ||
− | var | + | var L = $(window).width(); |
− | + | var lp = $("#loading_icon p").width() | |
//加载图像 | //加载图像 | ||
$("#loading_icon").fadeOut(2000); //应用2000,调试1 | $("#loading_icon").fadeOut(2000); //应用2000,调试1 | ||
+ | |||
//加载文字 | //加载文字 | ||
− | + | $("#loading_icon p").css('left', (L - lp)*100 / (2 * L) + 'vw'); | |
Line 106: | Line 107: | ||
<body> | <body> | ||
<div id="loading_icon"> | <div id="loading_icon"> | ||
− | < | + | <p>MOSFET</p> |
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 23:23, 15 October 2018
MOSFET