Open hightman opened 11 years ago
to @hightman,脱离 bootstrap.css 也简单,方法如下:将 bootstrap/less-ie6/bootstrap-ie6.less 中已注释掉的组件全部取消注释,然后用 less 编译它,即可生成可脱离原版 bootstrap 的 bootstrap-ie6.css。
由于 css 加载有先后顺序的问题,并且 ie6 对一些新的 css 选择器支持不全,所以做成单独的 css 补丁也会导致诸多问题(会不得已参杂一些修补代码),这对以后升级到新版 bootstrap 也不容易;bootstrap 即使小版本之间的代码改动也比较大,因此基于原版修改,留下修改轨迹,利于将来升级。
恩。同意
I don't speak Chinese, so I don't understand what's being said here.
I'd just like to inform you about jQuery Bootstrap ( https://github.com/jslegers/jquery-bootstrap ). It's a project I created 2 years ago that integrates Bootstrap 1.x with jQuery UI. It fully supports IE6+. You might want to look into the source code to see if it helps you improve Bsie.
My latest CSS framework is also fully compatible with IE6, by the way. Its default layout is similar to that of Bootstrap. If it's of any help to you guys, feel free to check that out as well. You can find it at https://github.com/jslegers/cascadeframework .
目前 bootstrap-ie6.css 是基于 bootstrap.css 直接修改,尺寸比较大,而且也不利于跟随 bootstrap 同步和升级。
经过实际测试,发现 bootstrap-ie6.css 也不能脱离 bootstrap.css 单独工作(我用PHP判断在IE6时只加载 bootstrap-ie6.css 结果好多乱掉的)。
因此强烈建议做成补丁呀,辛苦作者了 ^-^ 目前我结合 yii-bootstrap 在做,继承扩展了一个 BootstrapIE6,在 PHP 代码中判断 IE6/7 时加载这些补丁,效果还不错。