我有一个问题,我一直在努力在我的图像中的一个空白,这个问题没有发生在火狐。
这是密码。
HTML:
<hr>
<h2>Modos de Mezcla</h2>
<h3>Sobre imágenes (img)</h3>
<article class="card">
<img src="./assets/tree.jpg" alt="Arbol en una puesta de sol">
</article>
CSS:
html {
box-s
我要把它垂直和水平地放在中间:
html {
width: 100%;
height: 100%;
background: url(/icon.png) center center no-repeat;
}
这是可行的,但现在我正在尝试添加填充。我想有10 it或20 it填充在所有方面,所以移动它有一些填充。我试过这个:
html {
width: 100%;
height: 100%;
background: url(/icon.png) center center no-repeat;
background-origin: content-box;
pad
我有一个图像的幻灯片放映,但图像并不完全显示。我该如何解决这个问题呢?我想要显示的图像,无论它的高度。这张图片显示了我的问题。这是出现在我的幻灯片中的图像的一部分
html,
body {
height: 85%;
}
.carousel,
.item,
.active {
height: 100%;
}
.carousel-inner {
height: 100%;
}
/* Background images are set within the HTML using inline CSS, not here */
.fill {
width: 100%;