Две вкладки первая застревает, когда вы находитесь в режиме отладки во второй вкладке

Прошел год, так как вопрос был задан, но я не был удовлетворен ответами. Я немного поиграл, и вот код, который:

  • работает в IE8 + и во всех других браузерах,
  • очень легко понять;
  • идеально выравнивает границы ячеек (ячейки фиксированной ширины);
  • фиксирует головку во время прокрутки тела;
  • автоматически адаптируется к сенсорным экранам.

Живая демонстрация здесь: http://jsbin.com/bagaro/1/edit?html,output .




    
    Scrollabe table
    
    
    


    

This table is scrollable

Name Operator Began operation Tonnage Status
Seabourne Sun Seabourn Cruise Line 1988 ? Ended service in 2002, currently operating as Prinsendam
Adventures of the Seas Royal Caribbean International 2001 138,000 Operating
Oceanic Independence American Hawaiian Cruises / American Global Line 1974 23,719 Named formerly (1951-1974) and subsequently renamed (1982-2006) the Independence, renamed the Oceanic (2006), sold for scrap in 2008 but remains in mothballs
Cunard Ambassador Cunard Line 1972 14,160 Burnt 1974, rebuilt into a livestock carrier, renamed Linda Clausen, later Procyon, Raslan. Scrapped 1984 after a second fire.
Aegean Beauty Voyages to Antiquity 1973 11,563 Formerly Aegean Dolphin and Aegean I. Operating
Serenade of the Seas Royal Caribbean International 2003 90,090 Operating
Queen Elizabeth 2 Cunard Line 1969 70,327 Left fleet in November 2008
National Geographic Endeavour Lindblad Expeditions 1996 Operating, also known as Endeavour
Liberty of the Seas Royal Caribbean International 2007 154,407 Operating

0
задан John Jerrby 26 February 2015 в 11:22
поделиться