想了解twitter-bootstrap–使用bootstrap3中的glyphicon-facebook的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于twitterroundtable的
想了解twitter-bootstrap – 使用bootstrap 3中的glyphicon-facebook的新动态吗?本文将为您提供详细的信息,我们还将为您解答关于twitter round table的相关问题,此外,我们还将为您介绍关于css – 中心Twitter Bootstrap 3按钮中的Glyphicons、ruby-on-rails – rails使用bootstrap-sass而不是twitter-bootstrap-rails生成bootstrap布局、twitter-bootstrap – Bootstrap 3 glyphicons在附加、twitter-bootstrap – Bootstrap 3 glyphicons无法正确显示的新知识。
本文目录一览:- twitter-bootstrap – 使用bootstrap 3中的glyphicon-facebook(twitter round table)
- css – 中心Twitter Bootstrap 3按钮中的Glyphicons
- ruby-on-rails – rails使用bootstrap-sass而不是twitter-bootstrap-rails生成bootstrap布局
- twitter-bootstrap – Bootstrap 3 glyphicons在附加
- twitter-bootstrap – Bootstrap 3 glyphicons无法正确显示
twitter-bootstrap – 使用bootstrap 3中的glyphicon-facebook(twitter round table)
解决方法
http://getbootstrap.com/components/
看看fontastic.me.你可以创建自定义的字形集,并有一吨免费的字形可供选择,包括facebook glphys.
另一种选择是icomoon.io
css – 中心Twitter Bootstrap 3按钮中的Glyphicons
图标和文本具有相同的底线,但我相信一个好看的按钮图标应该基于文本居中,应该不是吗?任何想法如何实现这一点?
http://bootply.com/74652
解决方法
<button> <span></span> Centered </button>
Demo
ruby-on-rails – rails使用bootstrap-sass而不是twitter-bootstrap-rails生成bootstrap布局
但是,我看到twitter-bootstrap-rails gem有一些用于应用程序布局的生成器.喜欢,
rails g bootstrap:layout application fixed rails g bootstrap:themed Posts
我认为这对于启动项目非常有用.但是我没有在bootstrap-sass gem中找到类似的生成器.运行命令:
rails generate
没有像以前那样显示任何生成器.
有没有办法让这些布局使用bootstrap-sass而不是使用twitter-bootstrap-rails?
提前致谢.
解决方法
我在GitHub上找到了一个你可能会觉得有用的宝石:
https://github.com/decioferreira/bootstrap-generators
或者,您可以简单地定义一个新的custom.css.scss文件,并开始使用整个应用程序的CSS.并且不要忘记将bootstrap导入添加到您的文件中!
twitter-bootstrap – Bootstrap 3 glyphicons在附加
.input-group input.form-control(type='text') span.input-group-addon.glyphicon.glyphicon-calendar
但是,插件不与输入字段对齐。快照:
是正常的还是bootstrap 3中的错误?
更新
得到它了:
在bootstrap.css:2171(用较少编译)
.glyphicon{ ...; top: 1px; ...}
Bug?
解决方法
我先阅读这个https://github.com/twbs/bootstrap/issues/9850。
我使用这个代码:
<div> <br> <div> <span></span> <input type="text"placeholder="Username"> </div> <br> <div> <span></span> <input type="text"placeholder="Username"> </div> <br> <div> <input type="text"placeholder="Username"> <span></span> </div> <br> <div> <input type="text"placeholder="Username"> <span></span> </div> <br> <div> <input type="text"placeholder="Username"> <span></span> </div> <br> <div> <input type="text"placeholder="Username"> <span></span> </div> <br> <div> <input type="text"placeholder="Username"> <span><span></span></span> </div> <br> </div>
Firefox的搜索结果:
:
对于input-group-lg会有一个问题,双跨度使输入更长(由于.glyphicon:empty),但没有解决问题。
我也没有找到.glyphicon {…; top:1px; …}引起这个问题。
对于firefox我发现这个解决方案:
从bootstrap.css:
.input-group-lg > .form-control,.input-group-lg > .input-group-addon,.input-group-lg > .input-group-btn > .btn { height: 45px; padding: 10px 16px; font-size: 18px; line-height: 1.33; border-radius: 6px; }
将垂直填充从10px更改为9px解决了问题。
这个css规则来自forms.less(来自inputgroups.less的.input-lg()调用)
using @ padding-large-vertical:10px; (从variables.less)
在google chrome我发现了同样的问题,对于所有尺寸见:
在这种情况下,它有助于使用双跨:
`<span><span></span></span>`
twitter-bootstrap – Bootstrap 3 glyphicons无法正确显示
我找到了这个修复:Some of Bootstrap3 glyphicons are not displayed correctly on phonegap android webview修复了设备上的问题,但现在glyphicon在Firefox中不起作用. (我正在重写Bootstrap默认设置,以便在我的CSS中使用实际的,非转义的字形.)我想知道是否有办法使用Firefox的浏览器检测编写一些jquery来删除我的CSS文件中的覆盖并将其还原回到Bootstrap的CSS.
我找到了这个用于浏览器检测的jQuery插件:https://github.com/gabceb/jquery-browser-plugin
码:
JS
if ( $.browser.mozilla ) { $(''a#calendar span'').removeClass(''glyphicon-calendar''); $(''a#calendar span'').css({''glyphicon-calendar:before'': ''content: "\1f4c5"''}); }
CSS覆盖Bootstrap
/* fix glyph not showing on some devices--override the Bootstrap defaults to use the actual,non-escaped glyphs */ .glyphicon-calendar:before { content: "\d83d\dcc5"; }
Bootstrap的CSS
.glyphicon-calendar:before { content: "\1f4c5"; }
谢谢您的帮助.
解决方法
HTML
<ihttps://www.jb51.cc/tag/nes/" target="_blank">nescaped"></i>
CSS
.glyphicon-nonescaped.glyphicon-calendar:before { content: "\d83d\dcc5"; }
jQuery的
if($.browser.mozilla) { $(''.glyphicon-nonescaped'').removeClass(''glyphicon-nonescaped''); }
关于twitter-bootstrap – 使用bootstrap 3中的glyphicon-facebook和twitter round table的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于css – 中心Twitter Bootstrap 3按钮中的Glyphicons、ruby-on-rails – rails使用bootstrap-sass而不是twitter-bootstrap-rails生成bootstrap布局、twitter-bootstrap – Bootstrap 3 glyphicons在附加、twitter-bootstrap – Bootstrap 3 glyphicons无法正确显示的相关知识,请在本站寻找。
本文标签: