parent
4f3f6358fc
commit
863ec9d396
@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Created by ttang on 2016/8/22.
|
||||
*/
|
||||
app.directive('iphoneRecognize',function(){
|
||||
return{
|
||||
restrict: 'A',
|
||||
scope: {},
|
||||
link: function(scope, element){
|
||||
var userAgent = navigator.userAgent;
|
||||
if (/ipad|iphone|mac/i.test(navigator.userAgent)){
|
||||
element.css({"position":"relative","padding":"1px 0"});
|
||||
$(".post-wrapper").css("margin-bottom","0");
|
||||
$("#all_homework_reply").css("margin-bottom","0");
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
Loading…
Reference in new issue