There are two buttons on simple html page with attached twitter-bootstrap 2/3: with and without text.
If I open it, button without text has wrong smaller height (See screenshot below).
怎么来的呢?同样的情况在 IE 9\10 中重复出现。但如果跑进去jsfiddle http://jsfiddle.net/27m9V/, 一切皆好。即使我通过开发人员工具栏在互联网上带有 TB 的某些页面中手动添加按钮,一切都可以。
P.S.:与 Bootstrap 2 相同...
<html>
<head>
<link rel="stylesheet" type="text/css" href="http//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
</head>
<body>
<a class="btn btn-danger" href="#"><span class="glyphicon glyphicon-trash"></span> Delete</a>
<a class="btn btn-primary" href="#"><span class="glyphicon glyphicon-pencil"></span></a>
</body>
</html>
我究竟做错了什么?
原因是"<!DOCTYPE html>"
第一个字符串。必须按照上面针对 html5 编写的方式进行设置。
如果它不存在或者有 html 4 描述(“PUBLIC 等”),则会发生此错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)