浮动和清除浮动要一起使用吗
浮动出现问题后,p标签不应该被上面的ul盖住吗?为什么p中文本正好是出现在ul文本的后面呢
加入我想选择div中的最后一个p,那么是div p:last-chile吗?
只设置了box的左外边距和上外边距,为什么最右侧也有空隙呢,设置总宽度时如果不考虑这个空隙,8个box就会下移
定位实操(图片上定位文字).zip
<!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> .nav{ width: 100%; height: 60px; background-color: black; } .nav ul{ overflow: hidden; clear: both; } .nav ul li{ list-style: none; float: left; padding: 20px 25px; } .nav ul li a{ color: aqua; text-decoration: none; font-size: 30px; } .box{ width: 100%; height: 300px; position: absolute; left: 0%; display:none; } .nav li:hover>.box{ display: block; } </style> </head> <body> <div class="nav"> <ul> <li><a href="#">首页</a> <div class="box" style="background-color: red;"></div><!--这个就是下拉列代表的容器--> </li> <li><a href="#">手机</a> <div class="box" style="background-color: gold;"></div> </li> <li><a href="#">配件</a> <div class="box" style="background-color: green;"></div> </li> <li><a href="#">电脑</a> <div class="box" style="background-color: blanchedalmond;"></div> </li> <li><a href="#">手表</a> <div class="box" style="background-color: blue;"></div> </li> </ul> </div> </body> </html>
老师,submit那里的value是可以不用写对吗
老师,为什么我的显示的提示是这句话
我是这样写的
视频中为什么要加bottom?
不是没有position属性吗。
span标签不是行内元素吗,为啥还设置宽高?
<!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> .box{ width: 200px; height: 200px; background: red; padding: 50px; border:20px solid green; margin: 50px; box-sizing: border-box; } </style> </head> <body> <div class="box"></div> </body> </html>
<!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> .square { width: 400px; height: 400px; } .left{ float: left; width: 200px; height:200px; background-color: cyan; } .right { float: left; width: 200px; height: 400px; background-color: chocolate; } .top { width: 200px; height: 200px; background-color: antiquewhite; } .bottom { width: 200px; height: 200px; background-color: aquamarine; } </style> </head> <body> <div class="square"> <div class="left"> <div class="top"></div> <div class="bottom"></div> </div> <div class="right"></div> </div> </body> </html>
<!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> .square{ width: 600px; height: 600px; background-color: antiquewhite; } .left{ float: left; width: 200px; height: 600px; background-color: pink; } .right{ float: right; width: 400px; height: 600px; background-color: green; } .top{ width: 400px; height: 300px; background-color: springgreen; } .zuo{ float: left; width: 200px; height: 300px; background-color: blue; } .you{ float: right; width: 200px; height: 300px; background-color: chocolate; } </style> </head> <body> <div class="square"> <div class="left"></div> <div class="right"> <div class="top"></div> <div class="bottom"> <div class="zuo"></div> <div class="you"></div> </div> </div> </div> </body> </html>
这个注释标签<!--wode-->
中间必须要有空格吗?
比如说“你好,很高兴见到你”这段话,我想要加粗的同时增加斜体效果,标签要如何使用
非常抱歉给您带来不好的体验!为了更深入的了解您的学习情况以及遇到的问题,您可以直接拨打投诉热线:
我们将在第一时间处理好您的问题!
关于
课程分类
百战程序员微信公众号
百战程序员微信小程序
©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园网站维护:百战汇智(北京)科技有限公司 京公网安备 11011402011233号 京ICP备18060230号-3 营业执照 经营许可证:京B2-20212637