【发布时间】:2020-09-18 20:31:44
【问题描述】:
你还好吗) 是否可以在 div 背景中调整图像的大小。我的图像是 350 x 80 需要调整为 300 x 70。 是的,我可以使用 Photoshop,但希望通过调整大小来获得那些漂亮的锐利像素。 PS 我不想使用表格等。
下面是我的例子:
body {
background-color: #6B6B6B;
font-family: Arial;
color: darkgrey;
font-size: 12px;
line-height: .2;
letter-spacing: .5px;
}
/*.............. info ..............*/
.info {
position: fixed;
top: 30px;
left: 30px;
grid-template-columns: 60px 300px;
display: grid;
}
<div class="info" align="center">
<div><img src="http://wizzfree.com/pix/profile.png" class="bevel2" width="60" height="60"/></div>
<div style="background-image: url('http://wizzfree.com/pix/bubble.png'); width="300" height="70";"><p>chat text some chat text here some text<p>here some chat text here some text here some<p>chat text here some text here some chat text<p>chat text here some text here some chat text</div>
</div>
【问题讨论】:
标签: html css image background divide