javascript - Positioning On Across Different Browsers -


When I create a web page, then I should put all the features on the page in one place in different browsers. Occasionally some features are placed in different positions, when I run the page on different browsers. I am using this variable to determine what the browser is being opened is OK and for example if I

  // Firefox = (navigator.usager.indexoff (" Firefox ")! = -1); // var opera = (navigator.usager.indexoff ("opera")! = -1); // var ie = (navigator.userAgent.indexOf ("MSIE")! = -1); // var safari = (navigator.userAgent.indexOf ("Safari")! = -1); // var skrom = (navigator.usager.indexoff ("chrome")! = -1);   

1 Is there a good way to do this when certain attributes are placed in different positions in different browsers?

2. How do I get back when I'm using 'navigator.userAgent.indexOf (...)'? Is it a boolean or some kind of collection that gives the status of the parameter, as if hemable? How exactly does the returns get?

  1. Different browsers may have different behaviors To do it, reset them to CSS to make a good deal.

  2. Navigator.UserEngent is a string object, thus .indexOf (...) integer number Returns

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -