gpt4 book ai didi

html - 背景不填充 div(仅在 txt 后面),不想使用 css3(只是普通的旧 css)

转载 作者:行者123 更新时间:2023-11-28 03:28:24 28 4
gpt4 key购买 nike

<分区>

我的背景没有填满我想要的:它只填满了 txt 的后面,而不是整个 div 的高度。有两个内联的 div,周围有一个包装器。右边的div通过CSS有一个背景。但它没有填充..

它简单明了,但我感到困惑和羞愧(或者疲倦和匆忙)-grrr-让它与 css3 一起工作,但它对我的一些“访客/客户”等来说是新的。

这里是:

    <style type="text/css">
<!--
body {
font: 100%/1.4 Helvetica, Verdana, Arial, sans-serif;
background: #FFF;
margin: 0;
padding: 0;
color: #000;
}
.container {
width: 100%;
background: #FFF;
margin: 0;
padding:0;
}
.wrapper {
display: inline-block;
width:75%;
float:right;
text-align:right;
margin:0;
padding:0;
}
.wrapper-img {
display:inline;
margin:0;
padding:0;
width:7px;
height:45px;
}
.wrapper-content-img {
display:inline;
margin:0;
padding:0;
width: 100%;
height: 45px;
background-image:url(images/paper-for-info-menu-right.gif);
/*background-size:100%;*/
}
.stretch {
width:100%;
height:100%;
}
-->
</style>
</head>

<body>

<div class="container">

<p>&nbsp;&nbsp;TEST TEST</p>

<div class="wrapper">

<div class="wrapper-img">
<img src="images/paper-for-info-menu-left.gif" width="7" height="45" alt="" />
<!-- End wrapper img--></div>

<div class="wrapper-content-img">
Lorem Ipsum Test Txt - Where is my background?
<img src="images/paper-for-info-menu-right.gif" width="" height="45px" alt="" />

<!-- End wrapper content img--></div>

<!-- End container --></div>
</body>
</html>

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com