CSS和HTML做好看的界面

Html制作简单而漂亮的登录页面

HTML登录界面的实现详解

--------------------------------------------------------------------------------------------------------------

CSS 教程           挺好的,可以在线操作

在HTML文档中嵌入CSS的几种方式         

--------------------------------------------------------------------------------------------------------------

HTML <input> 标签                  选择文档提交,是用的<input>标签

<input>:输入(表单输入)元素             这个讲得比较清楚

-------------------------------------------------------------------------------------------------------------

从实战中学前端:html+css实现漂亮的按钮                这个讲得很细

-------------------------------------------------------------------------------------------------------------

 

--------------------------------------------------------------------------------------------------------------

html之给文本框设置宽度和高度...                  改变<input>框大小 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,下面是一个简单的登录界面示例代码: ```html <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Login</title> <style> body { background-color: #f2f2f2; } .container { width: 400px; margin: 0 auto; margin-top: 100px; background-color: #fff; padding: 20px; border-radius: 10px; box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2); } h1 { text-align: center; color: #333; } input[type=text], input[type=password] { width: 100%; padding: 12px 20px; margin: 8px 0; display: inline-block; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; } button { background-color: #4CAF50; color: white; padding: 14px 20px; margin: 8px 0; border: none; border-radius: 4px; cursor: pointer; width: 100%; } button:hover { background-color: #45a049; } </style> </head> <body> <div class="container"> <h1>Login</h1> <form> <label for="username">Username</label> <input type="text" id="username" name="username" required> <label for="password">Password</label> <input type="password" id="password" name="password" required> <button type="submit">Login</button> </form> </div> </body> </html> ``` 使用CSS样式可以使登录界面更美观和易于使用。在这个示例中,我们使用了一个`container`类来包装登录表单,使用`box-shadow`属性来添加一个阴影效果,使用`border-radius`属性来使边框圆角化。同时,我们使用了`input`标签和`label`标签来创建用户名和密码输入框,并使用`button`标签来创建登录按钮。最后,使用`hover`伪类来添加当鼠标悬停在登录按钮上时的效果。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值