登录页面示例<!-- 登录表单容器 -->
<div class="login-container"><!-- 图片及链接 --><a href="https://www.magedu.com/"><img src="https://www.magedu.com/wp-content/uploads/2024/07/image-8-780x411-1.png" alt="马哥教育" title="马哥教育" onmouseover="this.title='马哥教育'"/></a><!-- 登录表单 --><form action="#" method="post"><input type="text" name="username" class="login-input" value="admin" readonly><input type="password" name="password" class="login-input" placeholder="输入密码"><button type="submit" class="login-button">登录</button></form>
</div><script>const passwordInput = document.querySelector('input[type="password"]');passwordInput.addEventListener('input', function() {const encrypted = '*'.repeat(this.value.length);this.setAttribute('value', encrypted);});
</script>