对大家有帮助的问答会被标记为“推荐”,看完课程过来浏览一下别人提的问题,会帮你学得更全面
<!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>
.text1{
line-height: 0px;
}
.box{
height: 80px;
width: 100%;
background-color: burlywood;
}
</style>
</head>
<body>
<div class="box">
<p class="text1">大家好</p>
</div>
</body>
</html>
老师想问一下 为什么在这里我text1是div里头的 行高设置为0px的时候,他效果看起来是超出了这个div呢 是因为div本身就会和最顶部上面有一个空间的原因吗
.btn 的margin-top是10.5应该是(66-(43+1+1))÷2算出来的吧,视频说得有问题
我只用了绝对定位left,没有用margin-left,动画也没有用display,而是给颜色设置透明,最后效果差不多,这样可以吗?
<div class="tria"></div>
.tria{ width: 0; height: 0; border-bottom: 8px solid transparent; border-left: 8px solid transparent; border-right: 8px solid transparent; position: absolute; bottom: 0; left: 33%; transition: all 0.05s; } .black-nav-left li:hover>.tria{ border-bottom: 8px solid #fff; }
到底什么时候需要用form表单包裹呢,为什么有的input被包裹,有的没有被包裹。输入框不需要form吗?
我的button标签为什么默认box-sizing不是content-box而是border-box
老师为什么设置cellspacing=0后,下边框还是有两个边框
<table border="1" cellspacing="0" align="center" width="500" height="300">
为什么relative也是相对于设置position属性的父级元素进行定位?不只有absolute是这样的吗?relative难道不是相对于自身的定位?
设置—Emment里面没有use online completions