在这篇文章中,我们将为您详细介绍css3–Bootstrap旋转木马作为网站背景的内容,并且讨论关于css3旋转木马效果的相关问题。此外,我们还会涉及一些关于BootstrapCSS加载bootstr
在这篇文章中,我们将为您详细介绍css3 – Bootstrap旋转木马作为网站背景的内容,并且讨论关于css3旋转木马效果的相关问题。此外,我们还会涉及一些关于Bootstrap CSS加载bootstrap-sass,其他CSS不会加载、bootstrap 提示、倒塌与旋转木马、bootstrap+html5+css3、bootstrap.css 与 bootstrap-responsive.css 有什么区别,怎么用的知识,以帮助您更全面地了解这个主题。
本文目录一览:- css3 – Bootstrap旋转木马作为网站背景(css3旋转木马效果)
- Bootstrap CSS加载bootstrap-sass,其他CSS不会加载
- bootstrap 提示、倒塌与旋转木马
- bootstrap+html5+css3
- bootstrap.css 与 bootstrap-responsive.css 有什么区别,怎么用
css3 – Bootstrap旋转木马作为网站背景(css3旋转木马效果)
目前我有全屏幕背景图像,我为body标签设置如下:
body { background: url('Content/images/planet.gif') no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover; }
它看起来不错,当我试图改变浏览器窗口大小时,调整大小完美.
现在我想通过添加背景轮播为我的网站添加一些视觉效果.有没有办法在整个背景下实现标准的bootstrap轮播?
我发现了一个可能的解决方案HERE,但让我感到困惑的是 – img标签用于不同的图像.我试图通过背景网址做同样的事情,但无法弄明白.
解决方法
HTML:
<div id="myCarousel"> <div> <div></div> <div></div> <div></div> </div> </div>
CSS:
.carousel { z-index: -99; } /* keeps this behind all content */ .carousel .item { position: fixed; width: 100%; height: 100%; -webkit-transition: opacity 1s; -moz-transition: opacity 1s; -ms-transition: opacity 1s; -o-transition: opacity 1s; transition: opacity 1s; } .carousel .one { background: url(assets/img/slide3blur.jpg); background-size: cover; -moz-background-size: cover; } .carousel .two { background: url(assets/img/slide2blur.jpg); background-size: cover; -moz-background-size: cover; } .carousel .three { background: url(assets/img/slide1blur.jpg); background-size: cover; -moz-background-size: cover; } .carousel .active.left { left:0; opacity:0; z-index:2; }
JS:
<script type="text/javascript"> $(document).ready(function() { $('.carousel').carousel({interval: 7000}); }); </script>
Bootstrap CSS加载bootstrap-sass,其他CSS不会加载
@import "bootstrap";
没有别的.就在今天,我尝试添加一些自己的CSS来添加一些我没有使用Bootstrap的样式.这是我的欢迎视图/控制器所以我只是将它添加到welcome.css.scss
.complete-class { text-decoration: line-through; }
从阅读@L_301_0@我的理解是你可以在清单中包含像welcome.css.scss这样的CSS文件,如下所示:
@import "bootstrap"; /* *= require_self *= require_tree . */
这没有成功应用我的CSS; welcome.css.scss也没有出现在head标签中.
当我试图调试这个时,我遇到了一些奇怪的事情,我觉得我也应该指出:
1.导入引导程序时出错
VIM的Syntastic插件有助于指出错误:
File to import not found or unreadable: bootstrap. Load path: /home/stephen/code/bLocitoff/app/assets/stylesheets
这很奇怪,因为
> a)之前没有出现过这个错误,尽管我没有更改它引用的代码行(@import“bootstrap”)
和
> b)bootstrap仍然忠实地应用于我的页面布局,并出现在head标签的资产中.
2.卸载bootstrap-sass
我搜索了上面的错误并找到了this issue,这表明我卸载并重新安装bootstrap-sass.虽然奇怪的是,即使我卸载了宝石,引导设备仍然保留在页面上,但这并没有奏效.
rails的版本是4.1.5
>将所有css移动到application.css.scss
因为看起来我正在从application.css.scss加载bootstrap,所以我在那里添加了我的css,但这也没有用.
>浏览器上的隐身模式
最后我想如果卸载bootstrap-sass时引导程序没有消失那么可能它们被缓存在我的浏览器上了?我认为在开发过程中没有发生这种情况,但以防我在隐身模式下启动了chrome.仍然没有变化.
除了弄清楚如何解决这个问题之外,我真的很想了解这里发生了什么 – 希望我能更好地了解rails资产管道的工作原理.
解决方法
gem ''bootstrap-sass'',''~> 3.2.0'' gem ''sass-rails'',''>= 3.2''
application.css
/* *= require shared/bootstrap-base *= require_self */
应用程序/资产/样式表/共享/自举-base.scss
@import "bootstrap";
bootstrap 提示、倒塌与旋转木马
总结
以上是小编为你收集整理的bootstrap 提示、倒塌与旋转木马全部内容。
如果觉得小编网站内容还不错,欢迎将小编网站推荐给好友。
bootstrap+html5+css3
一、栅格和块阴影
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
box-shadow: inset 5px -5px 5px #444, inset -5px 5px 5px #444;
阴影向内,不写inset,默认阴影向外,后面四个参数依次为:左、下、向内扩散大小,阴影颜色;后一组参数依次为:阴影向内、右、上、向内扩散大小、阴影颜色;
1 2 |
|
提供了 3 种不同的列布局,分别适用于三种设备。在手机上,它将是左边 25% 右边 75% 的布局。在平板电脑上,它将是 50%/50% 的布局。在大型视口的设备上,它将是 33%/66% 的布局。
响应式的列重置
1 2 3 4 5 |
|
偏移列
1 2 3 4 5 6 7 8 9 |
|
嵌套列
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
列排序
1 2 3 4 5 6 7 8 9 |
|
二、排版
内联子标题
1 2 3 4 5 6 |
|
引导主体副本
1 2 |
|
强调
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
缩写
1 2 |
|
地址
1 2 3 4 |
|
列表
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
排版类总结
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
源码来源: minglisoft.cn/technology
bootstrap.css 与 bootstrap-responsive.css 有什么区别,怎么用
bootstrap.css 与 bootstrap-responsive.css 有什么区别,怎么用 。希望能普及下今天关于css3 – Bootstrap旋转木马作为网站背景和css3旋转木马效果的分享就到这里,希望大家有所收获,若想了解更多关于Bootstrap CSS加载bootstrap-sass,其他CSS不会加载、bootstrap 提示、倒塌与旋转木马、bootstrap+html5+css3、bootstrap.css 与 bootstrap-responsive.css 有什么区别,怎么用等相关知识,可以在本站进行查询。
本文标签: