<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> body{ background-image: url(../img/12.jpg); background-repeat: no-repeat; background-size: 1600px 800px; } a{ font-size: 25px; color: #ffffff; } .div1{ width:300px; height: 200px; background: grey; text-align: center; } input{ width: 40px; height: 30px; } </style> <script> var i=-1; function changebc(){ var arr=['13.jpg','12.jpg']; i++; if(i<arr.length-1){ i++; }else{ i=0; } document.body.style.backgroundImage="url(../img/"+arr[i]+")" } function chengove(){ //获得div对象 var div=document.getElementById("div_1"); div.style.marginTop="300px"; div.style.marginLeft="400px"; } </script> </head> <body> <a href="javascript:changebc()">更换主题</a> <div class="div1" id="div_1"> <h3>我是不是你的小可爱</h3> <input type="button" value="是" /> <input type="button" value="否" onmouseover="chengove" /> </div> </body> </html>
鼠标放在“否”上不能实现框体移动
老师,我这个文件为什么找不到啊,位置代码没有问题的
老师我这不显示插件怎么回事
老师讲的自定义Integer类应该是没初始化cache数组,在测试时发现报错
代码如下:
/** * 自定义一个Integer的简单包装类 */ public class MyInteger { private static MyInteger []cache; private int value; private static final int LOW = -128; private static final int HIGH=127; static{ cache= new MyInteger[1000];//初始化缓存数组 for (int i = LOW; i < HIGH; i++) { cache[i+128] = MyInteger.valueOf(i); } } public MyInteger(int value) { this.value=value; } public static MyInteger valueOf(int num) { if (num>=LOW&&num<=HIGH){ //-128~127 return cache[num+128]; } return new MyInteger(num); } public static void main(String[] args) { // write your code here MyInteger integer =MyInteger.valueOf(30000); MyInteger integer1=MyInteger.valueOf(30000); System.out.println(integer==integer1); } }
但是在cache初始化时,数组容量怎么设定比较合理呢?
这个是什么问题呀?
ListNode: (, val: ): .val: = val .next: ListNode | = MyLinkedList: (): .size = .head = ListNode() (, index: , val: ): index > .size: index = (, index) add_node = ListNode(val) pred = .head _ (index): pred = pred.next add_node.next = pred.next pred.next = add_node .size += (, val: ) -> : .add_at_index(, val) (, val: ) -> : .add_at_index(.size, val) (, index: ) -> : index < index >= .size: -pred = .head _ (index + ): pred = pred.next pred.val (, index: ) -> : index < index >= .size: pred = .head _ (index): pred = pred.next pred.next = pred.next.next .size -= (): cur = .head.next cur: (cur.val) cur = cur.next __name__ == : link=MyLinkedList() link.add_at_tail() link.add_at_tail() link.add_at_tail() link.add_at_tail()
老师 我怎么打印不出结果
查看不了数据库编码...........
老师,我这jdk配置成功了,和视频安装步骤一样,当天用可以
第二天打开dos就显示不行,没有Java这个命令,又要重新配置才行
系统是win10,64位,我配的也没有问题,怎么过一天就失效了,要重新配置。
<!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> ul { color: red; } </style> </head> <body> <ul> <li>你好</li> <li> <ul> <li>好的</li> <li>好的</li> <li>好的</li> </ul> </li> <li>你好</li> </ul> </body> </html>
这里改变样式直接用ul{}不就可以了,为什么要用ui li{}的后代选择器
当输入负数的时候为什么输出薪资后不会显示负的薪资呢?
老师,在内存分析中,有个疑问。
对象P与origin 所调用的方法是公用的,那么main方法当中,p.getDistance(origin)所调用的方法是否与对象p公用?
logger.critical('critical')
Message: 'critical'
Arguments: ()
上面还要有这个错误
raise SMTPServerDisconnected("Connection unexpectedly closed")
smtplib.SMTPServerDisconnected: Connection unexpectedly closed
'email': {
'level': 'ERROR',
'class': 'logging.handlers.SMTPHandler',
'formatter': 'standard',
...
'secure' : (), # 加上这个就解决了 虽然我也不知道为啥
# 'encoding': 'utf-8', # got an unexpected keyword argument 'encoding' 不能有encoding
}
zookeeper启动失败了,照着老师的已经敲了三次了,JDK倒是安装成功了
老师,这三集视频的资料有问题。资料下载下来是这图片里的资料;根本没有virtualenvwrapper的文档资料
请问老师有没IDEA导入工具包的详细步骤么??网上搜索了半天都没有成功。
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637