- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我似乎无法消除背景照片的空白区域。以下是我尝试过的所有 .css 样式:
.prflBg {
ion-card-content{
background-image: url('../assets/img/headerBg.png');
background-size: 320px 158px;
background-repeat: no-repeat;
width: 100% !important;
overflow: visible !important;
margin-left: -10px !important;
padding-top: 5px !important;
padding-left: 0 !important;
padding-right: 0 !important;
}[![enter image description here][1]][1]
最佳答案
“背景大小”属性决定了图像的大小。如果不知道背景图像的大小或您尝试将其放入的容器,就很难知道哪里出了问题。
然而,background-size 属性是非常标准的。第一个数字决定图像的宽度,第二个数字决定图像的高度。还有"word" choices你可以用它做各种事情。
在您的情况下,我建议使用“background-size:cover”,因为根据 w3Schools,这是 cover 值的作用:
Cover will resize the background image to cover the entire container, even if it has to stretch the image or cut a little bit off one of the edges
关于html - 展开背景照片整个宽度的卡片,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50671358/
我有一个卡片列表: hand = ["KC", "QC", "4C", "0S"] 而且我总是想获得排名最高的卡片,就像在这个列表中一样 rank_cards = ["2", "3",
我正在使用 Opencv 2.4.3,我的显卡是 ATI,但我一直在阅读 CUDA 启用了 Nvidia,这是否意味着只要我有 ATI 显卡我就不能使用 gpu 功能? 最佳答案 的确,CUDA 技术
在 Android 中实现 Stripe 时,有一个 CardInputWidget 给你一个 Card 对象,然后你得到一个token 来自 Stripe API 使用该卡,最后您将该 token
我是一名优秀的程序员,十分优秀!