【发布时间】:2019-07-06 17:29:58
【问题描述】:
我的网站有问题我在屏幕右侧的 img 和文本之间有空白背景,请查看我的屏幕截图以了解我的意思,我将提供代码以查看我是否真的犯了错误我编写这个网站的代码我使用引导程序在移动设备上做出响应,但是你在我的屏幕截图中看到的不是。我该如何解决这个问题有人可以解决吗?我尝试 whit bootstrap 使用 d-block,但它仍然显示空白。
HTML
.myimg {
position: absolute;
top: 60em;
left: 60em;
width: 100%;
height: auto;
}
.myimg2 {
border-radius: 100%;
width: 35%;
}
.name {
position: absolute;
top: 37em;
left: 23em;
color: azure;
text-shadow: 2px 2px 2px black;
}
.mytext {
position: absolute;
top: 48em;
color: wheat;
text-shadow: 2px 2px 2px black;
}
<div id="aboutMe">
<img src="Images/background.jpg" width="1920" height="1080" alt="bg">
<div class="aboutMeContent ">
<div class="container">
<div class="row">
<div class="myimg">
<img src="Images/me.jpg" alt="me" class="myimg2">
</div>
<h1 class="name">Stefan Momcilovic</h1>
<h4 class="col-sm-6 text-center mytext"><i>Hello dear visitors I am Stefan Momcilovic, I'm a web development from high school, so far I have several projects that I've made some of you can see in my portfolio, programming has been interesting since my early years, but for the first time I entered in programming is on elementary school I made games that you can find on a google play store, and from high school I'm doing web development, I hope we will work together on your project in the future,Have nice day!</i></h4>
</div>
</div>
</div>
</div>
【问题讨论】:
-
这是因为您在和还有为什么背景图片不是背景?我知道这可能是“奇怪的”,但是当我的 bg 设置为 css 时它不起作用我知道为什么但我会修复它..
标签: javascript html css twitter-bootstrap