私が持っているもの:HTML:
<div id="mydiv" data-content="Loading..."></div>
CSS:
#mydiv:after{
content: attr(data-content);
height: 100%;
opacity: 1;
position: absolute;
text-align: center;
text-transform: uppercase;
width: 100%;
white-space: pre;
}
JS(jQuery):
$('.ui-effects-transfers').attr('data-content',"Loading... \A Please wait...");
CSSで設定すると問題が発生します
content: "Loading... \A Please wait...";
次に、\Aはブレークラインとして機能します。これをデータコンテンツで設定すると、改行が機能しません。
この問題を解決するにはどうすればよいですか?