一、代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style> .top{ border: 1px solid red; height: 100px; width: 100%; } .top_a{ color: gray; font-size: 14px; text-decoration: none; } a:hover{ color: red; /*下划线展示*/ text-decoration: underline; } .tips{ width: 100%; height: 40px; background-color: pink; /*文本居中*/ text-align: center; /*行高居中 行高和外面的div高度相同,内部的内容就会竖直居中*/ line-height: 40px; } .center{ width: 100%; height: 400px; background-image: url("https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1602562296515&di=b959c6333a34e41943add0b7dc0dff31&imgtype=0&src=http%3A%2F%2Fpic22.nipic.com%2F20120624%2F2457331_180355053375_2.jpg") background-repeat:no-repeat } </style> </head> <body> <div class="top"> <a class="top_a">登录界面</a> </div> <!--标题部分--> <div class="tips"> 这个地方有很多字,里边包含一些协议《安全协议》 </div> <div class="center"> </div> </body> </html>
二、疑问
老师我输入 background-repeat:no-repeat原来的图片就会消失怎么回事。
老师你好
p1.age=24p2.age=35
这个24和35,是它们本身在常量池中,赋值后,把它们的地址给变量,让变量指向常量池中的值。还是值就在堆中,不指向常量池?
最后并没有执行打印出 this is tomcat,看下怎么回事,打印的是1 4 16,是什么意思。这老师讲课太马虎了,都不讲明白
用IDEA写xml和schema,将schema导入xml的时候 输入xsi报错
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="books"> <!--根元素是books--> <xs:complexType> <!--books中包含了其他的子元素,所以books是复杂的数据类型--> <xs:sequence> <!--按顺序编写--> <xs:element name="book" maxOccurs="unbounded"> <!--book可以出现多个,所以maxOccurs="unbounded",不绑定--> <xs:complexType> <!--book中有也包含其他子元素,所以book是复杂的--> <xs:sequence> <!--按顺序写--> <xs:element name="name" type="xs:string"></xs:element> <xs:element name="author" type="xs:string"></xs:element> <xs:element name="price" type="xs:double"></xs:element> </xs:sequence> <xs:attribute name="id" type="xs:positiveInteger" use="required"></xs:attribute> <!--book的属性,必须写,所以use="required"--> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <books xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="books.xsd"> <book id="1001"> <name>java实战开发</name> <author>张小三</author> <price>98.5</price> </book> </books>
老师看下(1)为什么这里我的数字1会显示个?(2)分页那里的:total,不能写成total,不然共多少条和页码直接不显示了。(3)以上两个问题直接用老师代码也一样有问题
这是:total直接写0的情况能显示
这是:total=“total”的情况
代码打包:
打包.zip
为啥我执行./server.sh start命令之后它一直处在正在开启的状态中?
这个回答就很敷衍了啊
我刚做试验, 连接redis,set进去值, 直接结束redis进程, 确实会有dump.rdb文件, 并且重新连接,可以读取到上次set的值, 说明是有持久化的
并不是上面回答的过了一段时间,
老师现在通过SpringBoot脚手架工具构建项目用的是2.4版本的SpringBoot,按照视频里的版本构建项目maven一直在构建,都好几个小时了,一直在下载不同的jar包,请老师告诉我这个pom文件应该放哪些依赖
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.0.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.bjsxt</groupId> <artifactId>springbootactuatorservice</artifactId> <version>0.0.1-SNAPSHOT</version> <name>springbootactuatorservice</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- https://mvnrepository.com/artifact/de.codecentric/spring-boot-admin-starter-server --> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> <version>2.1.6</version> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> </plugins> </build> </project>
老师,这个JDBC进阶这里听得很吃力,后面这几节课可以先跳过吗?
版本已经改成2.12.23但还是报这样的错误
老师,这个方法看名字是根据id更新,为啥传入的是一个对象,点进去了也没看懂
老师,能不能上传zookeeper的安装包呀 Thanks
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <button>跨域传输</button> <script> var but=document.querySelector('button'); //加载另一个页面,需要借助之前学的框架 but.onclick=function () { var iframe=document.createElement('iframe');//创建一个框架 iframe.src='page.html';//加载保存信息的页面 iframe.style.display='none';//加载过来了,不能加载出来,要隐藏 document.body.appendChild(iframe);//把iframe放到body里面 //当iframe加载完毕,意味着window.name的内容已经赋予完毕 iframe.onclick=function (eve) { var iframeWindowName=eve.target.contentWindow.name; //console.log(iframeWindowName); eval(iframeWindowName);//将字符串转换为代码执行 console.log(num); } } </script> </body> </html> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script> var num=10; window.name=' var num=10;';//可以借助window.name来实现 </script> </body> </html>
老师我这个怎么什么也没有呀
一、截图
二、问题
以下压缩包为webapps目录下的练习项目工程
servlet_demo01.rar
并没有找到问题出在哪个部分,感谢老师帮忙查找
scrapy03.zip
老师,我写的只能爬取到第一页的数据,第二页的数据就显示读取不到了
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637