我做了一个简单的布局,但已经过了多年,因为我已经编码,并且在定位和移动滚动框时遇到了问题,无法与我在此图像上创建的文本框区域对齐。将滚动框向下移动到文本框区域?
这是我到目前为止的编码。肯定失去了一些东西......
<center>
<div class="img">
<div class="scroll">
<a>
text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here text here
</a>
</div>
</div>
<style>
.img{
background-image: url(http://i65.tinypic.com/4janew.jpg);
background-size: 100% 100%;
width: 930px;
height: 634px;
text-align: center;
overflow: hidden;
padding: 7%;
}
.scroll{
height: 50%;
width: 100%;
overflow-y: auto;
padding-right: 25%;
}
.scroll a{
position: relative;
bottom: -400px;
font-size: 14px;
color: #BBA894;
font-family: Times New Roman;
}
</style></center>
你是什么意思的滚动框和文本框?期望的结果应该是什么样子?此外,'
对不起,很生锈!如果您在整个页面上运行代码段,您可以看到在“Alma's”名称下面的布局底部,我为我想定位滚动框的位置创建了一个矩形空间。但正如您所看到的,滚动框/文本位于布局图像的中心,而不是底部的矩形区域。不知道我错过了什么,或者我需要拿出什么,因为我多年没有编码。 – Connie
另外,中心元素用于将整个图像定位在网站上。 – Connie