对大家有帮助的问答会被标记为“推荐”,看完课程过来浏览一下别人提的问题,会帮你学得更全面
<style>
.root{
width: 500px;
height: 500px;
}
.left{
float: left;
width: 250px;
height: 500px;
background-color: firebrick;
}
.right{
float: left;
width: 250px;
height: 500px;
background-color: cyan;
}
.top{
width: 250px;
height: 250px;
background-color: pink;
}
.bottom{
width: 250px;
height: 250px;
background-color: darkblue;
}
</style>
</head>
<body>
<div class="root">
<div class="left">
<div class="top"></div>
<div class="bottom"></div>
</div>
<div class="right"></div>
</div>
</body>
老师,left那个颜色为什么被覆盖了
老师控制台看不到经纬度,其他效果没问题这是为什么啊?前两节也是,控制台根本看不懂
关于路由对象,什么时候用router,什么时候用route这个有特别说明吗
为什么我这个include没有效果,反而使keepalive标签也失效了
<keep-alive include="ComponentA">
<component :is="activeComponent"></component>
</keep-alive>
------------------------------------------------------------------
setup () {
const activeComponent = ref('ComponentA')
function changeHandle () {
activeComponent.value = activeComponent.value === 'ComponentA'?'ComponentB':'ComponentA'
}
return {
activeComponent,
changeHandle
}
}
生命周期中的创建期,相应的元素都读取不到,这个时期的钩子函数有什么用?
老师,想问一下,为什么可以用&分割,原字符串里并没有&啊
又为什么第二个分割后没有&,而第一个有
var arr = ["尚学堂","百战程序员"];
var myArr = arr.join("&");
console.log(myArr);
console.log(myArr.split("&"));
练习题第二题,因为num1不>=num2,所以无打印,不是吗
老师我想问一下,购物车的鼠标滑动之后的边框不显示想问一下我写的CSS哪里出了问题。
leftBtn.onclick = function () {
idx--
console.log(idx);
changePic();
}
rightBtn.onclick = function () {
idx++
console.log(idx);
changePic();
}
感觉左右切换图片显示的按键,左侧idx--右侧idx++比较好,与下方的指示器能对上
老师 我运行效果都没问题,就是控制台这里不一样,我查看不了看不太懂我这是怎么回事?
<ul>
<li><a href="https://bjsxt.com">尚学堂合作</a></li>
<li><a href="https://itbaizhan.cn">百战程序员</a></li>
<li><a href="https://mi.com">小米</a</li>
<li><a href="https://jd.com">京东</a></li>
</ul>
什么情况下适合使用a href="#"?