HTML5 Shim funkcijās.php - CSS-triki

Satura rādītājs

Varētu arī saglabāt savu header.php tīru un ievietot starpību no faila functions.php.

// add ie conditional html5 shim to header function add_ie_html5_shim () ( echo ''; echo ''; echo ''; ) add_action('wp_head', 'add_ie_html5_shim');

Starpība ir tāda, lai HTML5 elementus varētu veidot, izmantojot CSS, pārlūkprogrammas Internet Explorer versijās, kas jaunākas par 9.

Interesanti raksti...