{"id":232584,"date":"2023-01-19T17:29:00","date_gmt":"2023-01-19T14:29:00","guid":{"rendered":"https:\/\/wordpress.mediadoma.com\/?p=232584"},"modified":"2023-02-01T11:04:21","modified_gmt":"2023-02-01T08:04:21","slug":"il-tag-dei-dettagli-in-html5-e-limplementazione-jquery","status":"publish","type":"post","link":"https:\/\/wordpress.mediadoma.com\/it\/il-tag-dei-dettagli-in-html5-e-limplementazione-jquery\/","title":{"rendered":"Il tag dei dettagli in HTML5 e l&#8217;implementazione jQuery"},"content":{"rendered":"<p>HTML5<\/p>\n<p>Secondo <a href=\"https:\/\/www.w3schools.com\/tags\/tag_details.asp\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">W3school<\/a>, <a href=\"https:\/\/helloacm.com\/how-to-read-local-files-using-html5-filereader\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">HTML5<\/a> ha aggiunto un nuovo tag, dettagli. Il suo utilizzo di esempio \u00e8:<\/p>\n<pre><code>&lt;details&gt;\n\u00a0 &lt;summary&gt;Computing &amp; Technology.&lt;\/summary&gt;\n \u00a0&lt;a class=\"vglnk\" target=\"_blank\" href=\"https:\/\/helloacm.com\" rel=\"nofollow\"&gt;&lt;span&gt;https&lt;\/span&gt;&lt;span&gt;:\/\/&lt;\/span&gt;&lt;span&gt;helloacm&lt;\/span&gt;&lt;span&gt;.&lt;\/span&gt;&lt;span&gt;com&lt;\/span&gt;&lt;\/a&gt;\n&lt;\/details&gt;<\/code><\/pre>\n<p>Se il tuo browser supporta <a href=\"https:\/\/helloacm.com\/html5-contenteditable-global-attribute\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">HTML5<\/a> e supporta questo tag, vedrai il seguente funzionamento (tag espandibile, fai clic per attivare mostra e nascondi, rimosso perch\u00e9 <a href=\"https:\/\/wordpress.mediadoma.com\/it\/come-abilitare-amp-con-wordpress-tecniche-di-ottimizzazione-amp-con-wordpress\/\" title=\"AMP\">AMP<\/a> non consente questi tag <a href=\"https:\/\/helloacm.com\/how-to-read-local-files-using-html5-filereader\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">HTML5<\/a> ):<\/p>\n<pre><code>\u25b6 Computing &amp; Technology.\n<\/code><\/pre>\n<p>Sfortunatamente, non tutti i browser supportano questo come i browser <a href=\"https:\/\/helloacm.com\/separation-of-microsoft-unit-tests-to-reduce-the-load-of-ci-server\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">Microsoft<\/a> IE o Edge. Ma puoi sempre usare jQuery (o pure javascript) per ottenere gli stessi effetti (almeno il 99% simili).<\/p>\n<p>\u25b6 Informatica e tecnologia.<\/p>\n<p>Il codice sorgente \u00e8:<\/p>\n<pre><code>jQuery(document).ready(function() {\n\u00a0 jQuery('#example_label1').click(function() {\n\u00a0 \u00a0 \u00a0jQuery('#example_d1').toggle();\n\u00a0 });\n});<\/code><\/pre>\n<p>Sono definiti due div HTML: esempio_etichetta1 e esempio_d1. Il triangolo <a href=\"https:\/\/helloacm.com\/providing-an-isunicodeversion-api-in-your-delphi-project\/\" target=\"_blank\" rel=\"noopener nofollow\" class=\"external external_icon\">unicode<\/a> quadrato a destra viene trasformato in basso ma questo non viene preso in considerazione in questo semplice sostituto di <a href=\"https:\/\/wordpress.mediadoma.com\/it\/jquery-come-animare-lo-scorrimento-verso-lalto-e-lo-scorrimento-verso-un-div\/\" title=\"jQuery .\">jQuery .<\/a><\/p>\n<p>Sembra che tu stia utilizzando un blocco degli annunci. Ma senza entrate pubblicitarie, non possiamo continuare a rendere questo sito fantastico. Capisco, ho disabilitato il mio blocco degli annunci.<\/p>\n<p><div id=\"PostUnique_PostSource\" style=\"padding-top: 50px\">Fonte di registrazione:  <a target=\"_blank\" rel=\"noopener nofollow\" href=\"\/\/helloacm.com\" class=\"external external_icon\">helloacm.com<\/a><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Il tag dei dettagli in HTML5 e l&#8217;implementazione jQuery<\/p>\n","protected":false},"author":1,"featured_media":224460,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_wp_rev_ctl_limit":""},"categories":[896,731,720,844],"tags":[1168],"class_list":["post-232584","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codice","category-javascript-6","category-sviluppatore","category-tutorial","tag-affiai-it"],"_links":{"self":[{"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/posts\/232584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/comments?post=232584"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/posts\/232584\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/media\/224460"}],"wp:attachment":[{"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/media?parent=232584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/categories?post=232584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.mediadoma.com\/it\/wp-json\/wp\/v2\/tags?post=232584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}