<!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>
老师,这个怎么哪出错了吗?
<!-- .wrap() .unwrap() .wrapAll() .wrapInner() --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>DOM插入并包裹现有内容</title> <script src="../jquery-3.7.1.js"></script> </head> <body> <!-- 这个是用HTML写的(咋不可以实现呢?) <p id="you">DOM插入并包裹现有内容</p> <script> // 创建一个div容器来包裹p标签 // 1 创建一个div容器 var a = document.createElement("div"); // 2 获取 p 标签 var b = document.getElementById("you"); // 3 将 P 标签放入到 div 中 a.appendChild(b); // 4 将div 放入到 body 框架中 document.getElementsByTagName("body")[0].appendChild(a); --> <p>DOM插入并包裹现有内容</p> <script> $("p").wrap("<div id='mnn'>这个用JQ写的</div>"); </script> </body> </html> #老师,我的和视频中的老师是一样的怎么不可以实现呢?
我的右键为什么没有“在浏览器中运行”的这个选项呢?
老师,加了 iconfont + 字体图标名称 之后为什么还 取要一个类名呢?
老师,请问视频、音频属性我们不学习吗?
老师,我想把这两个文本内容放在一条水平线上,这个怎么实现呢? 比如:Henry 总会遇见u。这样
这答案不对的
<!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>
<script src="./jquery-3.6.0.min.js"></script>
<style>
.container {
background: #CCCCCC;
border: 3px solid #666666;
margin: 5px;
padding: 5px;
width: 200px;
height: 200px;
overflow: auto;
}
p {
margin: 10px;
border: 2px solid #666;
width: 1000px;
height: 1000px;
</style>
</head>
<body>
<div class="container">
<h1>itbaizhan</h1>
<p>sxt</p>
</div>
<span class="text"></span>
</body>
</html>
老师,这段代码中css里添加的overflow: auto;这个是具体做什么用的?
老师在js中,这个for(var i in username)中的i指的是username这个数组所存在的所有下标标号(索引)对嘛,和python里面有区别
var list = [1, 2, 3, 4, 5, 6];
var item;
while (item = list.shift()) {
console.log(item);
list // []
老师这个方法有bug对吧,如果数组中有元素为0就直接跳出循环了
本年度最后不是应该12月30号嘛 为啥是11月31号?
找到错误了,怪自己太初心
<!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> .box1{ width: 200px; height: 200px; background-color: red; position: absolute; left: 100px; top: 200px; } .box2{ width: 300px; height: 300px; background-color: aqua; } .box3{ width: 200px; height: 200px; background-color: blueviolet; position: absolute; left: 50px; top: 100px; } </style> </head> <body>top <div class="box1"></div> <div class="box2"></div> <div class="box3"></div> </body> </html>
老师,表格内容长短不一样的话,如何设置让每个单元格的宽度或长度相同呢?
定义粗体文字<b> 和着重语气<strong>有什么区别吗 感觉在网页体现出来的是一样的
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637