小米官网项目2.zip
mi.css里面
1.第511行
.phone-box-left{}里面的width
这个地方原本该设置234px的,但是一设置234px,就摆放错乱,但是经过计算,摆放234px的盒子是可以的,也不知道为什么放不了
2.最后面家电模块,按照课程讲的宽度进行设置,但就是没法摆放正确,位置一直错乱
<form>
用户名:<input type="text">
密码:<input type="password>
<br>
<input type="radio" name="sex">男
<input type="radio" name="sex">女
</form>
这里代码为什么报错了呢
radio那一行可以省去value不写吗?
下拉列表中的option属性中,可不可以不写value属性,直接写要下拉的文本?
什么情况下需要写name,和value属性;单选和复选框不写value属性,可以吗?
老师,在写小米商城官网的页脚时遇到一个问题。官网在这一部分有一个两张图片交替闪烁的效果,两张图片瞬间交换只显示一个,我用动画来写会有淡入淡出的效果,请问这个该怎么实现瞬间的交替呢?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.bot-img {
width: 600px;
height: 100px;
border: 1px solid red;
text-align: left;
position: relative;
}
.bot-img p {
width: 92px;
height: 28px;
margin-left: 0;
float: left;
margin-left: 20px;
.bot-p {
background-color: blue;
.imgs,.imge {
position: absolute;
top: 0;
left: 354px;
background-color: red;
.imge {
animation: change 3s infinite;
background-color: greenyellow;
@keyframes change {
0% {
opacity: 0;
50% {
opacity: 1;
100% {
</style>
</head>
<body>
<div class="bot-img">
<a href="#">
<p class="bot-p"></p>
</a>
<p class="imgs"></p>
<p class="imge"></p>
</div>
</body>
</html>
小米官网项目.zip
为什么加了z-index,“下载APP”和“购物车”里面的弹窗依旧被遮挡住
老师,我想配置我的VS code,可是找不到Use Inline Completions
<form action="">
<input type="radio" name="sex" value="1">男<input type="radio" name="sex" value="0">女
name标签一致才会有单选效果,是因为把这两个input放入了同一个name里面然后形成了一个整体是这样吗?这样才实现的单选效果是吧?
我按标准书写的标准盒模型,然后就是在我浏览器上运行打开之后宽度溢出了,border和padding也没有数值我是什么没安装吗
在html页面中的style属性中写css样式时,vscode写css总是出现emmet abbreviation,
回车之后,自动生成的是html的标签,
百度好久,试了两个解决方案,都没有效果,请问老师这个该怎么解决。
为什么我的也是直角不是圆角
.box {
width: 500px;
height: 500px;
.left {
width: 250px;
height: 250px;
.top {
background-color:pink;
width:250px;
height:250px;
.buttom {
background-color:aquamarine;
.right {
background-color:bisque;
float: right;
<div class="box">
<div class="left">
<div class="top"></div>
<div class="buttom"></div>
<div class="right"></div>
<b>标签和<strong>标签分别在那些场合用?
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> video{ width: 300px; height: 300px; } </style> </head> <body> <div> <video src="games.mp4" muted controls autoplay ></video> <audio src="returns.mp3" controls autoplay></audio> </div> </body> </html> 打开网页,为什么音频不能自动播放呢
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> video{ width: 300px; height: 300px; } </style> </head> <body> <div> <video src="games.mp4" muted controls autoplay ></video> <audio src="returns.mp3" controls autoplay></audio> </div> </body> </html>
打开网页,为什么音频不能自动播放呢
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637