我的显示不出来
老师,请问视频、音频属性我们不学习吗?
老师,加了 iconfont + 字体图标名称 之后为什么还 取要一个类名呢?
老师,请问:为什么不用 div 去承载这张图片呢?
display 的属性值,大家可以看一下哦~
找了几个属性,大家可以看一下哦~
function debounce(fn,delay){
let timer = null //借助闭包
return function() {
if(timer){
clearTimeout(timer)
}
timer = setTimeout(fn,delay) // 简化写法
// 然后是旧代码
function showTop () {
var scrollTop = document.documentElement.scrollTop;
console.log('滚动条位置:' + scrollTop);
window.onscroll = debounce(showTop,300)
请问触发滚动事件时debounce中的let timer = null每次都执行吗
function showTop () { var scrollTop = document.documentElement.scrollTop; console.log('滚动条位置:' + scrollTop); } window.onscroll = showTop
为什么最后一行调用showtop函数时不加括号呢?
老师请问我的代码是有什么问题吗,为什么点击提交没有视频中演示的效果
防抖和python爬虫差不多,服务器访问次数太多也容易崩溃
<!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>
老师,下面三个为什么不在上面那个大盒子里面呢?
老师,rgb的颜色范围是0~255,为什么这个可以实现呢? <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .d{ border:3px solid pink; width:400px; padding: 28px; border-radius: 25px; box-shadow: 20px 20px rgb(568,473,174); } </style> </head> <body> <div class="d"> <p>表格属性</p> </div> </body> </html>
老师,我想把这两个文本内容放在一条水平线上,这个怎么实现呢? 比如:Henry 总会遇见u。这样
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> #you{ font-size: 30px; color: blue; background-color: chartreuse; width:500px; height:500px; } .classtyu{ font-size:30px; color: blueviolet; background-color: aquamarine; width: 400px; height: 400px; background-repeat: no-repeat; } .classttt{ font-size: 30px; color: blueviolet; background-color: aquamarine; width: 300px; height: 300px; background-repeat: no-repeat; background-image: url("a138b3258e7831b7e5c78462e96be42.jpg"); background-position: center; } </style> </head> <body> <div id="you">一件愚蠢的事</div> <br> <div class="tyu">1 实现区块</div> <br> <div class="ttt">2 实现图片</div> <br> <div><p>3 总的</p></div> <br> <div><h1>总结</h1></div> </body> </html>
老师,这个怎么哪出错了吗?
老师,我想把这三个div放在一个水平线上,怎么实现呢!
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2024 百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637