Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad 1 not detecting LESS css?

Tags:

css

less

While debugging our website I found a bug with an iPad viewing in portrait mode. As we are using bootstrap I applied the LESS CSS technique but it looks like Safari isn't compatible with this. Am I correct that iOS 5.1.1 doesn't support less with less.js?

EDIT: Adding some code what I'm doing:

<script type="text/javascript" src="/js/bootstrap.js"></script>
<link rel="stylesheet/less" type="text/css" href="/less/bootstrap.less" />  
<script src="/js/less-1.5.0.min.js" type="text/javascript"></script>


<!-- SKIN --> 
<link href="/css/new_style.css" rel="stylesheet"></script>

Also, I'm testing on an iPad 1 (iOS5.1.1) and 2 (iOS 7). iPad 2 works like a charm.

like image 392
rwzdoorn Avatar asked Nov 21 '25 11:11

rwzdoorn


1 Answers

It is always better practice to compile LESS file and place css code instead of directly placing LESS file.

like image 130
codingrose Avatar answered Nov 24 '25 05:11

codingrose



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!