I wrote a menu where the total width of the buttons should always be the same width of the menu bar. Therefore, I take spaces and divide them into buttons.
It works on: Windows: FF IE6 IE7 IE8 Mac: Safari Chrome
But it does not work in Firefox on Mac, can anyone think?
You can find an example: http://www.bobkarreman.com/menu_prototype/menu/menu.html
EDIT:
I am doing the following steps:
So it may be that the last LI gets 1 or 2 pixels less or more.
, li, - float, . , -. Math.floor .
Math.floor
console, , , . , marLeft 38 ( last 43), 43 <a>. , console.
console
marLeft
38
last
43
<a>
, Safari ( <a> padding-left: 39px, padding-left: 40px, ).
padding-left: 39px
padding-left: 40px
: , console, Safari , marLeft 35, 40 ( last).
35
40
2: , . . !
Source: https://habr.com/ru/post/1729094/More articles:How to Publish a Website Using Vis Studio Web Developer Express Edition - visual-web-developerКак сделать UpdatePanel игнорировать нажатие одной кнопки, которая находится внутри него? - c#TextChanged / LostFocus / etc .. event for DataGridTextColumn - c #rails 3.0: ActionController :: Base render () - ruby-on-railsHow can I call the codebehind function from JavaScript? - javascriptJQuery - capture td value next to switch - jqueryWindows.Forms showing disabled form in non-modal state - c #Проблемы с Pylons и AuthKit OpenID - pythonMapping a property to an SQL expression or multiple columns in Fluent nHibernate - c #google maps api java - javaAll Articles