{"id":2251,"date":"2022-01-31T18:53:35","date_gmt":"2022-01-31T17:53:35","guid":{"rendered":"https:\/\/ekiwi.de\/?p=2251"},"modified":"2025-05-01T10:56:41","modified_gmt":"2025-05-01T08:56:41","slug":"html-tooltip-title-mit-zeilenumbruechen","status":"publish","type":"post","link":"https:\/\/ekiwi.de\/index.php\/2251\/html-tooltip-title-mit-zeilenumbruechen\/","title":{"rendered":"HTML: Tooltip (title) mit Zeilenumbr\u00fcchen"},"content":{"rendered":"<p>Carriage Return im Title-Attribut von HTML.<\/p>\n<p><!--more--><\/p>\n<p>Mit dem Title-Attribut kann man HTML-Elemente schnell mit einem Tooltip ausstatten.<\/p>\n<pre>&lt;h1 title=\"Ich bin ein Tooltip!\"&gt;Hello World&lt;\/h1&gt;<\/pre>\n<p>F\u00fcr einfache Texte funktioniert dies sehr gut, Schwierigkeiten gibt es bei einem <a title=\"Mit welcher Tastenkombination man in Visual-Studios Resource-Editor einen Zeilenumbruch einf\u00fcgt\" href=\"https:\/\/ekiwi.de\/index.php\/6593\/visual-studio-zeilenumbruch-in-resource-datei\/\">Zeilenumbruch<\/a>. Der Ansatz hier einfach einen BR-Tag zu verwenden schl\u00e4gt fehl.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2252\" src=\"\/wp-content\/uploads\/2022\/01\/tooltip_1.png\" alt=\"\" width=\"458\" height=\"116\" srcset=\"\/wp-content\/uploads\/2022\/01\/tooltip_1.png 458w, \/wp-content\/uploads\/2022\/01\/tooltip_1-300x76.png 300w\" sizes=\"auto, (max-width: 458px) 100vw, 458px\" \/><\/p>\n<p>Die L\u00f6sung? Einfach verwenden:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2253\" src=\"\/wp-content\/uploads\/2022\/01\/tooltip_2.png\" alt=\"\" width=\"591\" height=\"65\" srcset=\"\/wp-content\/uploads\/2022\/01\/tooltip_2.png 591w, \/wp-content\/uploads\/2022\/01\/tooltip_2-300x33.png 300w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/p>\n<p>Und schon klappt es mit dem Zeilenumbruch.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2254\" src=\"\/wp-content\/uploads\/2022\/01\/tooltip_3.png\" alt=\"\" width=\"273\" height=\"114\" \/><\/p>\n<p><a href=\"https:\/\/ekiwi.de\/tryit\/?id=193\" target=\"_blank\" rel=\"noopener\">Online Beispiel<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Carriage Return im Title-Attribut von HTML.<\/p>\n","protected":false},"author":1,"featured_media":1344,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[5],"tags":[4],"class_list":["post-2251","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hmtl","tag-html"],"_links":{"self":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/2251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/comments?post=2251"}],"version-history":[{"count":0,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/posts\/2251\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media\/1344"}],"wp:attachment":[{"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/media?parent=2251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/categories?post=2251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekiwi.de\/index.php\/wp-json\/wp\/v2\/tags?post=2251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}