- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我已经算不上设计师了,但是当 bootstrap 出错时,它会变得更丑陋!哈哈
症状:
对于电子邮件输入元素,bootstrap 3.1.1(或 3.2.1)文本 input.form-control 正在获取 input[type="text"] 高度为 20px 的 css 而不是 .form-control 高度34px。 (还有轮播的其他问题,但这个问题也可能会解决)。
<input name="email" id="email" class="email form-control" value="" placeholder="Email" type="text">
firefox 和 chrome 调试器显示计算样式
height: 20px;
: 0d2f40c28e9c5f841c06747091712c74bd91fff6.css:8918 input[type="text"] 20px;
: 0d2f40c28e9c5f841c06747091712c74bd91fff6.css:2236 .form-control 34px; ( this has a strike-through font )
几周前这看起来还不错,现在我似乎遇到了特定顺序问题???
最后一个已知的好例子: http://blogtation.meteor.com/
目前的困惑: http://blogtationcss.meteor.com/
我应该看什么?
详细信息:
尝试使用最新的和下面的(3.1.1-1)“bootstrap-3”,都使用 meteor 0.8.2 和 0.8.1
智能锁
{
"meteor": {},
"dependencies": {
"basePackages": {
"iron-router": {},
"bootstrap-3": {
"git": "https://github.com/mangasocial/meteor-bootstrap-3.git",
"tag": "v3.1.1-1"
},
"collection-hooks": {},
"mongo-counter": {},
"dstreams": {
"git": "git@github.com:jimmack1963/meteor-streams.git",
"branch": "master"
},
"momentjs": {},
"event-hooks": {},
"cookies": {},
"headers": {},
"server-info": {},
"bootstrap-alerts": {},
"accounts-entry": {},
"captcha": {},
"roles": {},
"fastclick": {},
"timesync": {}
},
"packages": {
"iron-router": {
"git": "https://github.com/EventedMind/iron-router.git",
"tag": "v0.7.1",
"commit": "d1ffb3f06ea4c112132b030f2eb1a70b81675ecb"
},
"bootstrap-3": {
"git": "https://github.com/mangasocial/meteor-bootstrap-3.git",
"tag": "v3.1.1-1",
"commit": "63dd38968828bb8963636df93e9a1c45e2dfe67e"
},
"collection-hooks": {
"git": "https://github.com/matb33/meteor-collection-hooks.git",
"tag": "v0.7.2",
"commit": "261f61f07b371ae913463fba8964a9b93cab531b"
},
"mongo-counter": {
"git": "https://github.com/awwx/meteor-mongo-counter.git",
"tag": "v1.1.0",
"commit": "9a0710543cec7c192e38d5acc54cf3b0a9fbcb20"
},
"dstreams": {
"git": "git@github.com:jimmack1963/meteor-streams.git",
"branch": "master",
"commit": "c29a5f95cf33727719e67767ab8e19dc90f07c6f"
},
"momentjs": {
"git": "https://github.com/crapthings/meteor-momentjs.git",
"tag": "v2.1.0.2",
"commit": "59a762e297082eea8b8cae00374c2b7ac6f89529"
},
"event-hooks": {
"git": "https://github.com/BenjaminRH/meteor-event-hooks.git",
"tag": "v1.4.3",
"commit": "ba4f3d7887748458618d29615492906f0c88d31c"
},
"cookies": {
"git": "https://github.com/subhog/meteor-cookies.git",
"tag": "v0.3.0",
"commit": "c3d2684cd97dd611652833169b5f628ad23c57f6"
},
"headers": {
"git": "https://github.com/gadicohen/meteor-headers.git",
"tag": "v0.0.24",
"commit": "3c09e682895e13c71ca0114baf3c09ee9c507709"
},
"server-info": {
"git": "https://github.com/percolatestudio/meteor-server-info.git",
"tag": "v0.6.2",
"commit": "db2c0b5863f2209acfd2f82d1fa45ec33ab31b82"
},
"bootstrap-alerts": {
"git": "https://github.com/asktomsk/bootstrap-alerts.git",
"tag": "v0.0.5",
"commit": "6ddd650208a77677ab86af9dfccc3a69b1ba8d32"
},
"accounts-entry": {
"git": "https://github.com/Differential/accounts-entry.git",
"tag": "v0.7.3",
"commit": "7facaa045d3720eeeba3420c28e48d5709188fe3"
},
"captcha": {
"git": "https://github.com/andi-bute/captcha-meteor.git",
"tag": "v0.0.7",
"commit": "d1f2e1f8de2ec1cfb6f8769b82f2accd610e6c92"
},
"roles": {
"git": "https://github.com/alanning/meteor-roles.git",
"tag": "v1.2.10",
"commit": "7ccb35de0a6cb0c9a0c3666badd04757e39c09a6"
},
"fastclick": {
"git": "https://github.com/percolatestudio/meteor-fastclick",
"tag": "v0.6.7",
"commit": "fcb3bfd34d9f6874e626b4e24e8f54107938db41"
},
"timesync": {
"git": "https://github.com/mizzao/meteor-timesync.git",
"tag": "v0.2.1",
"commit": "fa4abd511f4e32a3c5d22795ce2c1e8369428fac"
},
"blaze-layout": {
"git": "https://github.com/EventedMind/blaze-layout.git",
"tag": "v0.2.4",
"commit": "b40e9b0612329288d75cf52ad14a7da64bb8618f"
},
"inject-initial": {
"git": "https://github.com/gadicc/meteor-inject-initial.git",
"tag": "v0.0.8",
"commit": "90f2fbcc5b4bc17fa4d4535f47813e31d86033b4"
},
"accounts-t9n": {
"git": "https://github.com/softwarerero/meteor-accounts-t9n.git",
"tag": "v0.0.5",
"commit": "ad9539a8818049d5d9fa050d8b2a1f62706483b1"
},
"npm": {
"git": "https://github.com/arunoda/meteor-npm.git",
"tag": "v0.2.6",
"commit": "177ab6118de5bf8cffb19481343d5762ff7a2aaf"
}
}
}
}
最佳答案
这不是“特异性顺序”问题,而是特异性问题。这是来自 www.cssspecificity.com 的图例的相关部分:
所以,你有:
input[type="text"]
:元素和属性选择器 - 0-1-1.form-control
: 一个类:0-1-0因此,不管它们的顺序如何,input[type="text"] 总是会赢。如果要覆盖,您需要添加一些自定义样式。
关于css - bootstrap 3 文本元素似乎从同一文件中获取错误的 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24689373/
有人可以告诉我 Bootstrap、Twitter Bootstrap 和 Bootstrap 3 之间有什么区别吗? 最佳答案 在 CSS 框架的上下文中,Bootstrap 和 Twitter B
什么是 Bootstrap 文档中的屏幕阅读器??? >>> bootstrap document 不知道什么是屏幕阅读器? 最佳答案 它是视力不佳或由于某种原因无法从屏幕上阅读的人使用的工具;它会向
我想更新网站上的 Bootstrap,但我不知道安装的版本。 如何仅使用 bootstrap.css 和 bootstrap.min.js 文件来识别 bootstrap 版本? CSS 文件中没有版
很抱歉问了这么一个愚蠢的问题,但我真的不清楚这些。 Bootstrap 是一个非常棒的库,它节省了开发人员的大量工作。 因为它提供了很多功能,比如 节省大量时间。 响应式功能。 一致的设计。 便于使用
我正在使用 ng2-bootstrap对于 Angular 2 项目。 这个包同时支持Bootstrap 3和4,我安装后默认使用Bootstrap 3。我没有找到任何关于切换的信息。 如何从 Boo
我计划在我的项目中使用 Bootstrap 4 和 angular 4,但我对 npm install --save @ng-bootstrap/ng-bootstrap 和 npm install
单击删除按钮后,我设置了警报。 但它的默认高度更大,我想让它更小(高度)。 我试过 display-4 属性(property),但它没有工作。 我已通过 w-50 将宽度设置为屏幕的一半,但警报的一
我使用 Bootstrap 按钮下拉菜单来显示表单。我通过调用 stopPropagation 禁用了单击时消失的下拉菜单(当用户操作表单时) .表单的元素之一是下拉列表。如果我使用 native h
twitter-bootstrap 中的“bootstrap”一词是什么意思?在许多 gem 中都有“bootstrap”这个词。我搜索了其中的含义,但无法得出结论。那么有人可以在这种情况下给出“Bo
由于 Bootstrap 5 不再使用 jQuery 并且正在使用 vanilla JS,我想知道是否仍然建议使用 Bootstrap-Vue,不管 Bootstrap-Vue 还不支持 Bootst
我正在使用 codeigniter 框架,我正在使用 bootstrap typeahead,一切都很好,但我的问题是当我将它放在 bootstrap 模式中时,bootstrap typeahead
我刚刚完成安装 bootstrap 5 版本 ^5.0.0-alpha1并在 app.js 中导入 Bootstrap import "bootstrap" 其他.js var myModal = n
我一直在尝试在使用选项卡的页面上实现 ScrollSpy。 这是我的 body 标签: 这是我的标签 HTML: Home Profile
如果您选择使用 Bootstrap-Xtra,您是否应该也包括原始的 bootstrap.css,或者 bootstrap-xtra.css 应该是一个完整的替代品。 例如,bootstrap-xtr
我正在使用 bootbox 创建一个对话框。 bootbox.dialog({ message: 'Datepicker input: ', title: "Custom label"
我正在将使用 Bootstrap 构建的 Web 应用程序迁移到 React 和 react-bootstrap,两者都很棒。我在 react-bootstrap 中没有看到的一件事是如何顺利集成 B
我正在使用 Bootstrap 3 RC,默认按钮是带有黑色文本的深灰色,而不是带有黑色文本的浅灰色。我已经尝试过 CDN 链接和离线。我还清空了我的浏览器缓存以防万一。有没有其他人经历过这个?这可能
在我的一个项目中,我曾经有 bootstrap-tagsinput http://timschlechter.github.io/bootstrap-tagsinput沿着 bootstrap-2.3
下拉菜单在 Angular-UI-Bootstrap 中不起作用?使用 Bootstrap-3 CSS 以下是代码。链接Click me for a dropdown出现。但不会在点击时切换。怎么了?
如何在 Bootstrap Table 中添加 Bootstrap 按钮 最佳答案 我已经想出了解决办法。我想和大家分享。 这是我的 table : # Visit
我是一名优秀的程序员,十分优秀!