HTML – 使用Bulma.io的整页图像背景?

HTML – 使用Bulma.io的整页图像背景?,第1张

概述我正在使用 Bulma.io CSS library设计一个网站 并且已经成功制作了整页彩色背景,但想使用图像,我可以在他们的文档中看到你可以指定图像的px大小,但我希望图像流畅,调整大小的用户浏览器,最好的方法是什么,不引起任何问题? 阅读此 http://bulma.io/documentation/layout/hero/或尝试自定义 //In HTML Section you need t 我正在使用 Bulma.io CSS library设计一个网站

并且已经成功制作了整页彩色背景,但想使用图像,我可以在他们的文档中看到你可以指定图像的px大小,但我希望图像流畅,调整大小的用户浏览器,最好的方法是什么,不引起任何问题?

解决方法 阅读此 http://bulma.io/documentation/layout/hero/或尝试自定义

//In HTML Section you need to create a class name Ex. bg-imge  <div >  </div> //in custom CSS you need to add   .bg-img {         background-image: url(demo.jpg) ;        background-position: center center;        background-repeat:  no-repeat;        background-attachment: fixed;        background-size:  cover;        background-color: #999; }// [.img-responsive is custom class in bootstrap] // You can use custom class like.img-responsive {      display: block;       max-wIDth: 100%;      height: auto;   } //which you can put in your HTML img part<img  src="demo.jpg"/>//in bulma.io [i'm not sure] but For single image you can use this. //It will auto responsive.  <div >   <figure >    <img src="demo.jpg">   </figure>  </div>

阅读http://bulma.io/documentation/elements/image/    在这里你会发现bulma.io img响应部分

总结

以上是内存溢出为你收集整理的HTML – 使用Bulma.io的整页图像背景?全部内容,希望文章能够帮你解决HTML – 使用Bulma.io的整页图像背景?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1068745.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-26
下一篇 2022-05-26

发表评论

登录后才能评论

评论列表(0条)

保存