Html 编码问题,如何解决?
如何向上移动文本“欢迎来到我的投资组合” 这是我的密码:Html 编码问题,如何解决?,html,css,Html,Css,如何向上移动文本“欢迎来到我的投资组合” 这是我的密码: .title4 { text-align:middle; font-family:'Roboto', sans-serif; color:white; font-size:45pt; font-size:2.5em; text-align:center; margin: 0; } .part1{ margin-top:120px; } .part2{ margin
.title4 {
text-align:middle;
font-family:'Roboto', sans-serif;
color:white;
font-size:45pt;
font-size:2.5em;
text-align:center;
margin: 0;
}
.part1{
margin-top:120px;
}
.part2{
margin-top:10px;
}
设置负边距是一种方法:
.one{
margin-top:-50px
}
如果有一个边距上限向下推,只需将.part1类的边距上限从120px更改为低于80px的值
.part1 {
/* margin-top:120px; This line is causing it to lower. */
margin-top:80px;
}
您是否试图降低
第1部分的页边距顶部值
你应该把
,
放在div里面
<section class="one">
<div class="container">
<h1 class="title4 part1">WELCOME TO MY</h1>
<h1 class="title4 part2">PORTFOLIO</h1>
</div>
</section>
.one {position:relative;}
.container {
position:absolute;
/*control the postition of the container div by left=,bottom=,top=,right=*/
}
欢迎来到我的
文件夹
.1{位置:相对;}
.集装箱{
位置:绝对位置;
/*按左=、下=、上=、右控制容器div的位置=*/
}
与流行的观点相反,学习技术的最佳方式是通过一个通常称为研究的过程。为了能够发布这个问题,你实际上必须点击一堆屏幕,上面有提示和操作指南,包括研究问题答案的建议。最常用的研究方法是搜索。