我有一个用CI&引导。在这种环境中,某些css属性不能正确显示。在CI中我有这样的观点:
<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo base_url('assets/bootstrap/css2/bootstrap.css');?>"></link>
</head>
<body>
<div class="container">
<input type="text" class="input-small" id="in_cod_horus" pattern="\D+\d{4,6}" maxlength="7">
</div>
</body>
</html>
在firebug的css计算检查器中,输入文本显示的height属性为:
身高: 6px
同时在css文件中是:
输入[type =“text”]→16px bootstrap.css:438
控制器非常简单:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Merc_inicio extends CI_Controller {
function index()
{
$this->load->view('plantilla');
}
}
?>
答案 0 :(得分:0)
解决!这是一个twitter-bootstrap / navigator渲染问题。 解决方案:Bootstrap text input wrong height