html+文字超出范围,HTML文字边距超出正文

在我的HTML中,有一个体在视口的高度上伸展,而在视口中有一个包含文本段落的div。我的文字有一些余地,因此,它超出了身体。

我觉得这真的很奇怪,因为该段是div的孩子,这是一个身体的孩子,该段的边缘超过了他的父母。这有解决方案吗? (除了删除保证金,因为我想保留)

提前致谢!

Picture

蓝色的东西实际上是身体(因为在右侧的检查器中选择了它。你看得很清楚它没有到达页面的顶部。

我的东西:

@font-face {

font-family: "MavenPro";

src: url('fonts/MavenPro-Medium.ttf');

}

@font-face {

font-family: "MavenPro";

src: url('fonts/MavenPro-Bold.ttf');

font-weight: bold;

}

* {

box-sizing: border-box;

}

html,

body {

height: 100%;

min-height: 100%;

margin: 0;

font-family: "MavenPro";

background-image: url('../images/BIER.jpeg');

background-color: white;

background-size: cover;

background-position: center;

}

p {

margin: 10px;

}

#nav {

position: relative;

width: auto;

float: left;

top: 0;

padding: 0;

height: auto;

height: 100%;

}

#menu {

list-style-type: none;

padding: 10px;

margin: 10px 5px;

display: inline-block;

box-sizing: border-box;

}

.mitem {

-webkit-transition-duration: 0.2s;

background-color: #dea243;

border-radius: 20px;

padding: 10px;

padding-left: 15px;

padding-right: 35px;

margin: 15px 5px;

font-size: 20px;

font-weight: bold;

color: #ae4411;

}

.mitem:link {

/*no css yet*/

}

.mitem:hover {

-webkit-transition-duration: 0.2s;

background-color: #d2b651;

color: #cccccc;

padding-left: 25px;

padding-right: 25px;

}

.mitem:active {

-webkit-transition-duration: 0.1s;

padding-left: 30px;

padding-right: 20px;

background-color: #ee7744;

}

a:link,

a:visited {

text-decoration: none;

color: #0025ff;

-webkit-transition-duration: 0.2s;

}

a:hover {

-webkit-transition-duration: 0.2s;

color: #0045ff;

}

a:active {

-webkit-transition-duration: 0.2s;

color: #ff4444;

}

#content {

/*no css yet*/

}

paragraph

Here is a link

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值