请问一下,老师,我的这个怎么没有反应呢? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <!--意思是说,各管各的,就是可能平时我们点击子级元素的时候会触发父级元素的某些特征,但是我并不希望这样,所以我来监听子级元素不让它去影响父级元素--> <ul id="you"> <li>星期1</li> <li>星期2</li> <li>星期3</li> <li>星期4</li> <li>星期5</li> </ul> <script> var a = document.getElementById("you"); a.addEventListener("click",function vv(){ if (event.target.tagName === "li"){ console.log("点击了li标签"); } }) </script> </body> </html>
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <p>弹性盒子模型</p> <div> <p class="lk">父辈</p> <div> <p class="mn">子级1</p> </div> <div> <p class="m">子级2</p> </div> <div> <p class="n">子级3</p> </div> </div> <br> <p>盒子模型,只涉及:margin,padding,width,height差不多的这几个属性</p> </body> <style> p{ font-weight: 500px; /*对大字进行加粗*/ } .lk{ width:800px; height:800px; font-size: 90px; display:flex; background-color: aquamarine; flex-direction: column; align-items: center; justify-content: center; } /* div>div{ width: 200px; height: 200px; font-size: 20px; background-color: blueviolet; } */ .mn{ color: aquamarine; width: 200px; height: 200px; font-size: 20px; background-color: blueviolet; } .m{ color: aquamarine; width: 200px; height: 200px; font-size: 20px; background-color: blueviolet; } .n{ color: blueviolet; width: 200px; height: 200px; font-size: 20px; background-color: blueviolet; } </style> </html>
老师,下面三个为什么不在上面那个大盒子里面呢?
感觉这个语言的字符串方法有种为算法量身定制的感觉
html文件中单个标签以属性的方式添加声明会覆盖内部样式吗
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <script> var arr = ['hello']; // arr[1] = 'dajiahao'; var mylength = arr.push('大家好','world',100,true,null,undefined,Object); console.log(arr); console.log(mylength); </script> </body> </html>
数组里Object,为什么会显示成f
老师好像keypress这里讲错了,keypress通常只能响应字母(含空格)这些键
获取焦点和失去焦点可以配合使用么
老师我想问一下为什么直接在style里面改span的图标大小属性不行,而是要加上一个新的类,对新的类操作才可以改图标大小
按钮提交button和submit有啥区别啊
<input type="text" name="sxt-itbaizhan">
<input type="text" name="sxt web">
<input type="text" name="bzsxt web ">
$('input[name$="web"]').css('border','3px solid red')
老师这是我的代码,$符号是匹配以什么为结尾的,我这里有两个web为什么我这里只显示一个呢
快速删除的快捷方式啥?还有删除后回退的快捷方式
老师我的回车键敲出来是16,这是什么情况
为什么box上面贴着root,不是设置margin=50px吗
为什么html写好后开始运行后,没有任何信息
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637