/* CSS代码 */ /* 使用渐变背景 */ body { background: linear-gradient(#2980B9, #6DD5FA); } /* 添加阴影效果 */ input[type="text"], input[type="password"] { box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.25); } /* 使用边框半径来实现圆角效果 */ input[type="text"], input[type="password"], button { border-radius: 10px; } /* 添加悬停效果 */ button:hover { background: #33A1DE; color: #fff; } /* 添加过渡效果 */ button { transition: all .3s ease-in-out; } /* 点击效果 */ button:active { transform: scale(0.95); }
有了这些 CSS3 技术,您可以创建出一个独特的登录页面,让你的用户感受到更加舒适和友好的用户体验。所以,别犹豫,让大家开始吧!