<div class="white-nav"> <div class="white-nav-bar"> <div class="bar-left"> <a href="#"> <img class="mi-logo"src="images/mi-logo.png" alt=""> <img class="mi-home" src="images/mi-home.png" alt=""> </a> </div> <div class="bar-center"> <ul> <li><a href="#">小米手机 <div class="list"> <div class="list-center"> <ul> <li> <a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a> </li> <li><a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a></li> <li><a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a></li> <li><a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a></li> <li><a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a></li> <li class="last-list"><a href="#"><div class="img-box"><img src="images/3b19bf0e7e599c1bbbce510fb0dbc8bc.jpg" alt=""> </div> <p class="name1">小米10S</p> <p class="price1">3299元起</p></a> </li> </ul> </div> </div> </a></li>
.white-nav{ width: 1423px; height: 100px; background-color: #ffffff; position: relative; } .white-nav-bar{ width: 1226px; height: 100%; margin: 0 auto; } .bar-left{ width: 55px; height: 55px; background-color: #ff6700; margin-top: 22.5px; float:left; position: relative; overflow: hidden; } .bar-center{ width: 875px; height: 100%; float: left; line-height: 100px; } .bar-right{ height: 100px; width: 296px; position: relative; float: left; } .bar-center>ul{ margin-left: 179px; } .bar-center li{ padding: 0 10px; float: left; } .bar-center>ul>li>a{ color: #333333; } .bar-center>ul>li>a:hover{ color: #ff6700; } .mi-home{ width: 100%; position: absolute; top: 0; left: 100%; } .mi-logo{ width: 100%; position: absolute; top: 0; left: 0; } .bar-left:hover .mi-logo{ left: -100%; } .bar-left:hover .mi-home{ left: 0; } .bar-left img{ transition: all .2s; } .list{ width: 1423px; height: 0; background-color: #fff; position: absolute; left: 40px; top: 100px; box-shadow: 0 3px 4px rgba(0,0,0,.2); transition: all .2s; overflow: hidden; float: left; } .list-center{ width: 1226px; height: 100%; position: absolute; left: 50%; margin-left: -613px; float: left; } .list-center li{ width: 204px; padding: 0; } .img-box{ width: 100%; height: 110px; border-right: 1px solid #eee; box-sizing: border-box; margin-top: 35px; margin-bottom: 16px; } .img-box img{ height: 100%; } .list-center p{ font-size: 12px; line-height: 20px; } .last-list .img-box{ border-right: none ; } .name1{ color: #333; } .price1{ color: #ff6700; } .bar-center li:hover .list{ height: 229px; border-top: 1px solid rgba(224,224,224,.6); } .bar-right{ height: 100px; position: relative; } .bar-right input{ width: 244px; height: 50px; border: 1px solid #e0e0e0; padding: 0 10px; box-sizing: border-box; outline: none; float: left; border-right: none; margin-top: 25px; } .bar-right>button{ width: 52px; height: 50px; border: 1px solid #e0e0e0; background-color: #fff; float: left; margin-top: 25px; } .bar-right input:focus{ border-color: #ff6700; } .bar-right input:focus~.iconfont{ border-color: #ff6700; } .bar-right>button:hover{ background-color: #ff6700; color: #fff; } .text-list{ width: 243px; height: 0; border-top: none; position: absolute; top: 75px; left: 0; z-index: 990; background-color: #fff; } .bar-right input:focus+.text-list{ height: 240px; border: 1px solid #ff6700; border-top: none; }
老师我想问问为什么我的list显示不了100%的宽度
视频里说错了,绑定uri用的是value,不是name。默认就是value
老师 您好,创建空间索引时报错,创建不了,是哪里出问题了?
老师,这里乱码怎么解决,我在实体类实现序列化接口没有用
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> a{ text-decoration: none; } .box1,.top,.bottom{ width: 100%; } .box{ height: 1005px; } .center{ width: 1240px; height: 1005px; background-color:#807e73; margin: 0 auto; text-align: center; } .top{ height: 610px; } .bottom{ height: 375px; } .top>div{ width: 615px; height: 610px; float: left; margin-top: 10px; border-bottom:10px; background-color: azure; } .top-lift,.bottom1,.bottom2,.bottom3 { margin-right: 9px; } .bottom>div{ width: 303px; height: 375px; float: left; margin-top: 10px; background-color: azure; } .ptop1{ color: #333; font-size: 28px; } .ptop2{ color: #333; font-size: 18px; } .ptop3{ color: #c00; font-size: 22px; } .sptop1{ font-size: 14px; } .imgtop{ width: 460px; height: 460px; padding-top: px; } .imgbottom{ width: 230px; height: 230px; } .pbottom1{ color: #333; font-size: 16px; } .pbottom2{ color: #999; font-size: 14px; } .pbottom3{ color: #c00; font-size: 22px; } .spanbottom{ font-size: 14px; } </style> </head> <body> <div class="box1"> <div class="center"> <div class="top"> <div class="top-lift"> <a href="https://detail.meizu.com/item/meizu18.html" target="_blank"> <p class="ptop1">魅族 18</p> <p class="ptop2">限时领券立省200 | 赠液态壳</p> <p class="ptop3"><span class="sptop1">¥</span>3999</p> <img src="meizu1.png" alt="魅族" title="魅族" class="imgtop" pos/> </a> </div> <div class="top-right"> <a href="https://detail.meizu.com/item/meizu18pro.html" target="_blank"> <p class="ptop1">魅族 18 Pro</p> <p class="ptop2">限时领券立省300 | 赠液态壳</p> <p class="ptop3"><span class="sptop1">¥</span>4999</p> <img src="meizu2.png" alt="魅族" title="魅族" class="imgtop"/> </a> </div> </div> <div class="bottom"> <div class="bottom1"> <a href="https://detail.meizu.com/item/meizu17.html" target="_blank"> <img src="meizu3.png" alt="魅族" title="魅族" class="imgbottom" /> <p class="pbottom1">魅族 17「AG梦幻独角兽」</p> <p class="pbottom2">高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="pbottom3"><span class="spanbottom">¥</span>3699</p> </a> </div> <div class="bottom2"> <a href="https://detail.meizu.com/item/meizu17.html" target="_blank"> <img src="meizu4.png" alt="魅族" title="魅族" class="imgbottom" /> <p class="pbottom1">魅族 17「松深入墨」</p> <p class="pbottom2">高通骁龙 865 | 120 Hz尝鲜模式</p> <p class="pbottom3"><span class="spanbottom">¥</span>3699</p> </a> </div> <div class="bottom3"> <a href="https://detail.meizu.com/item/meizu17pro.html" target="_blank"> <img src="meizu5.png" alt="魅族" title="魅族" class="imgbottom" /> <p class="pbottom1">魅族 17 Pro「定白」</p> <p class="pbottom2">限时领券至高立省1200+12期免息</p> <p class="pbottom3"><span class="spanbottom">¥</span>4299</p> </a> </div> <div class="bottom4"> <a href="https://detail.meizu.com/item/meizu17pro.html" target="_blank"> <img src="meizu6.png" alt="魅族" title="魅族" class="imgbottom" /> <p class="pbottom1">魅族 17 Pro「乌金</p> <p class="pbottom2">限时领券至高立省1200+12期免息</p> <p class="pbottom3"><span class="spanbottom">¥</span>4299</p> </a> </div> </div> </div> </div> </body> </html>
老师高老师这个上课的word是不是那个电子版的红皮书
http://www.itbz.com:8888/itbz/index.html
老师,比如访问上面的URL,根据端口找到tomcat向连接器发送请求,转发到engine,engine匹配Host虚拟主机处理/itbz/index.html,再根据/itbz匹配到web应用,再从web中找到index.html。
tomcat中Host组件和Windows中etc下hosts文件是什么关系啊,域名是为了匹配tomcat的Host组件来处理请求,还是为了在hosts文件中匹配IP地址呢?就是域名到匹配tomcat中Host过程是什么样的。
老师,为什么只用关闭DataOutputStream,而不用关闭BufferOutputStream和FileOutputStream?
2023-02-21.png
为什么我删掉.txt就变成这个了
老师,我按照视频中老师的讲解所编写的代码,运行后会报错,以下是源代码和错误信息截图,请老师查帮助,谢谢。
一、源代码
''' 新增功能: 左上角文字绘制; 左上角输出敌方坦克的数量6 ''' #导入pygame模块 import pygame SCREEN_WIDTH=700 SCREEN_HEIGHT=500 BG_COLOR=pygame.Color(0,0,0) TEXT_COLOR = pygame.Color(255,0,0) class MainGame(): window=None def __init__(self): pass #开始游戏 def startGame(self): #加载主窗口 #初始化窗口 pygame.display.init() #设置窗口的大小及显示 MainGame.window=pygame.display.set_mode([SCREEN_WIDTH,SCREEN_HEIGHT]) #设置窗口的标题 pygame.display.set_caption('坦克大战1.03') while True: #给窗口设置填充色 MainGame.window.fill(BG_COLOR) #获取事件 self.getEvent() # 绘制文字 MainGame.window.blit(self.getTextSuface('敌方剩余坦克数量%d'%6),(10,10)) pygame.display.update() #结束游戏 def endGame(self): print('谢谢使用,欢迎再次使用') exit() # 左上角文字的绘制 def getTextSuface(self,text): # 初始化字体模块 pygame.font.init() # 查看所有的字体 # print(pygame.font.get_fonts()) # 获取字体font对象 font = pygame.font.SysFont('宋体',18) # 绘制文字信息 textSurface = font.render(text,True,TEXT_COLOR) return textSurface #获取事件 def getEvent(self): #获取所有事件 eventList= pygame.event.get() #遍历事件 for event in eventList: #判断按下的键是关闭还是键盘按下 #如果按的是退出,关闭窗口 if event.type == pygame.QUIT: self.endGame() #如果是键盘的按下 if event.type == pygame.KEYDOWN: #判断按下的是上、下、左、右 if event.key == pygame.K_LEFT: print('按下左键,坦克向左移动') elif event.key == pygame.K_RIGHT: print('按下右键,坦克向右移动') elif event.key == pygame.K_UP: print('按下上键,坦克向上移动') elif event.key == pygame.K_DOWN: print('按下左键,坦克向下移动') class Tank(): def __init__(self): pass #移动 def move(self): pass #射击 def shot(self): pass #展示坦克的方法 def displayTank(self): pass #我方坦克 class MyTank(Tank): def __init__(self): pass #敌方坦克 class EnemyTank(Tank): def __init__(self): pass #子弹类 class Bullet(): def __init__(self): pass #移动 def move(self): pass #展示子弹的方法 def displayBullet(self): pass class Wall(): def __init__(self): pass #展示墙壁的方法 def displayWall(self): pass class Explode(): def __init__(self): pass #展示爆炸效果的方法 def displayExplode(self): pass class Music(): def __init__(self): pass #播放音乐 def play(self): pass if __name__=='__main__': # MainGame().getTextSuface() MainGame().startGame()
二、错误截图
老师,我输出的v,但是结果是这样,我不是很明白
这些符号顺序有什么规则吗
老师为啥这个图片路径找不到,明明在项目按路径可以找到,
netshop.zip
请问一下,这是什么错???和高老师写的一样啊。。
全外连接是不是就相当于是cross join交叉连接
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637