【HTML】@weijinhai0101:模仿酷狗登录页面半成品(CSS样式和HTML代码放在一起了)

素材素材素材```

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>模仿酷狗登录页面</title>
		<style type="text/css">
			/* 去掉外边距 */
			* {
				margin: 0px;
				padding: 0px
			}

			.father {
				width: 490px;
				height: 618px;
				border: 2px solid lightgrey;
				
				border-image: white;
				text-align: center;
				margin: auto;
				
			}
			.delete img{
				float: right;	
			}
			#clear{
				clear: both;
			}
			.biaoti{
				font-size: 38px;
				margin-top: 100px;
				font-family: 宋体;
				width: 490px;
				height: 38px;
				text-align: center;
			}
			/* 账号文本框 */
			.zhanghao{
				
				margin-top: 68px;
				width: 490px;
				height: 50px;
				text-align: center;	
				
				/* border: 1px solid red; */
			}
			.zhanghao input{
				background: url(img/QQ截图20190629174740.png)320px 12px no-repeat;
				font-size: 18px;
				width: 365px;
				height: 50px;
				border: 1px solid lightgray;
			}
			/* 密码文本框 */
			.pwd{
				margin-top: 10px;
				width: 490px;
				height: 50px;
				text-align: center;	
				/* border: 1px solid red; */
			}
			.pwd input{
				background: url(img/QQ截图20190629175348.png)250px 10px no-repeat;
				
				font-size: 18px;
				width: 365px;
				height: 50px;
				border: 1px solid lightgray;
			}
			.jizhumima{
				width: 490px;
				height: 50px;
				font-size: 18px;
				margin-top: 57px;
				/* border: 1px solid red; */
			}
			.password{
				width: 365px;
				height: 30px;
				/* border: 1px solid red; */
				margin-left: 62px;
			}
			/* 改变字体颜色 */
			.password a{
				color: black;
			}
			.denglu input{
				color: #FFFFFF;
				font-size: 30px;
				width: 365px;
				height: 50px;
				border: 1px solid deepskyblue;
				background: deepskyblue;
			}
			/* 去掉下划线 */
			a{
				text-decoration: none;
			}
			.ziti{
				color: deepskyblue;
			}
		</style>
	</head>
	<body>
		<div class="father">

			<div class="delete">
				<!-- 此图片右浮动 -->
				<img src="img/QQ截图20190629180920.png" width="25" height="25">
			</div>
			<!-- 清除浮动 -->
			<div id="clear">
				
			</div>

			<h2 class="biaoti">欢迎你的到来</h2>
			
			<p class="zhanghao">

				<input type="text"  placeholder="输入账号" />

			</p>

			<p class="pwd">
				
				<input type="password"  value="" placeholder="输入密码" />

			</p>

			<div class="jizhumima">
				
				<div class="password">
					
					<input type="checkbox" class="jizhumima1" /><a href="#">记住密码</a>
					
					<input type="checkbox" class="jizhumima2" /><a href="#">自动登录</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<a href="#">注册账号</a>
				</div>
				

			</div>
			<p class="denglu">
				
				<a href="#"><input type="submit" class="denglu1" value="登录" /></a>
				
			</p>

			<p class="picture">
				<a href="#"><img src="img/QQ截图20190629173646.png" width="40" height="40"></a>
				<a href="#"><img src="img/QQ截图20190629173726.png" width="40" height="40"></a>
				<a href="#"><img src="img/QQ截图20190629173746.png" width="40" height="40"></a>
				
				
				
			</p>

			<p>

				登录代表你同意
				<a href=""><span class="ziti">用户服务协议</span></a>
				和
				<a href=""><span class="ziti">隐私政策</span></a>
			</p>

		</div>
	</body>
</html>


  • 2
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
以下是一个酷狗官网榜单页面的完整 HTMLCSS 代码示例: ```html <!DOCTYPE html> <html> <head> <title>酷狗音乐榜单</title> <meta charset="utf-8"> <style> /* Reset styles */ * { margin: 0; padding: 0; box-sizing: border-box; font-family: Arial, sans-serif; } /* Header styles */ header { background-color: #f44336; color: #fff; padding: 20px; display: flex; justify-content: space-between; } header h1 { font-size: 32px; font-weight: bold; } header nav ul { display: flex; } header nav li { list-style: none; margin-left: 20px; } header nav a { color: #fff; text-decoration: none; font-size: 18px; font-weight: bold; padding: 10px; border-radius: 5px; transition: background-color 0.3s ease; } header nav a:hover { background-color: #fff; color: #f44336; } /* Main styles */ main { padding: 20px; } main h2 { font-size: 28px; font-weight: bold; margin-bottom: 20px; } main ol { list-style: none; padding: 0; margin: 0; } main li { margin-bottom: 10px; background-color: #f5f5f5; padding: 10px; border-radius: 5px; display: flex; align-items: center; justify-content: space-between; transition: background-color 0.3s ease; } main li:hover { background-color: #fff; } main li a { color: #333; text-decoration: none; font-size: 18px; font-weight: bold; } main li span { font-size: 14px; color: #999; } /* Footer styles */ footer { background-color: #333; color: #fff; text-align: center; padding: 20px; } footer p { font-size: 14px; } </style> </head> <body> <header> <h1>酷狗音乐榜单</h1> <nav> <ul> <li><a href="#">新歌榜</a></li> <li><a href="#">热歌榜</a></li> <li><a href="#">华语榜</a></li> <li><a href="#">欧美榜</a></li> <li><a href="#">日韩榜</a></li> </ul> </nav> </header> <main> <h2>新歌榜</h2> <ol> <li> <a href="#">歌曲名1 - 歌手名1</a> <span>播放次数:1000次</span> </li> <li> <a href="#">歌曲名2 - 歌手名2</a> <span>播放次数:900次</span> </li> <li> <a href="#">歌曲名3 - 歌手名3</a> <span>播放次数:800次</span> </li> <li> <a href="#">歌曲名4 - 歌手名4</a> <span>播放次数:700次</span> </li> <li> <a href="#">歌曲名5 - 歌手名5</a> <span>播放次数:600次</span> </li> </ol> </main> <footer> <p>版权所有 © 酷狗音乐</p> </footer> </body> </html> ``` 注意:这只是一个示例代码,实际的酷狗官网榜单页面可能会有更多的样式和布局,具体的实现方式取决于设计师和开发者的需求。

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

天元白手

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值