html 断字,小书签

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 断字,小书签相关的知识,希望对你有一定的参考价值。

Der Code des Bookmarklets setzt die `hyphenate`CSS property für alle unterstüzten Browser:

    javascript:jQuery('<style%20type="text/css"%3E*{-webkit-hyphens:%20auto;-moz-hyphens:%20auto;-ms-hyphens:%20auto;hyphens:%20auto;}</style>').appendTo($("body"))

Um den das Bookmarklett zu nutzen einfach den folgenden Link in die Bookmarks-Bar ziehen und auf www.zeit.de aktivieren: 
<a href=javascript:jQuery('<style%20type="text/css"%3E*{-webkit-hyphens:%20auto;-moz-hyphens:%20auto;-ms-hyphens:%20auto;hyphens:%20auto;}</style%3E').appendTo($("body"))>hyphenate zon</a>

<a href="javascript:(function(){if(window.addCss!==undefined){window.addCss();}else{document.body.appendChild(document.createElement('script')).src='https://rocktronica.github.io/Add-CSS-Bookmarklet/addcss.min.js';}})();" class="button" id="aAddCss">addCSS</a>

以上是关于html 断字,小书签的主要内容,如果未能解决你的问题,请参考以下文章

html 小书签

如何启用按音节自动断字?

原生 iOS 应用程序中的断字

javascript书签复制网页标题和链接

Android 中的断字

javascript [用户名] [齐塔]断字正常