Skip to content

Instantly share code, notes, and snippets.

@azusa-tomita
Created September 3, 2019 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azusa-tomita/a479335b5e23b23b89bcf3bd14bb2118 to your computer and use it in GitHub Desktop.
Save azusa-tomita/a479335b5e23b23b89bcf3bd14bb2118 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style id="jsbin-css">
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font: 30px sans-serif;
}
rt{
display:inline-block;
text-indent:-9999px;
width:1px;
height:1px;
margin:-1px;
overflow:hidden;
-ms-user-select:none;
-webkit-user-select:none;
user-select:none;
}
</style>
</head>
<body>
<h1>記号に任意の読み上げテキストを指定する</h1>
<p>
30&deg;
15&prime;
25&Prime;
</p>
<p>
30<ruby><rb aria-hidden="true">&deg;</rb><rp>(</rp><rt>ど</rt><rp>)</rp></ruby>
15<ruby><rb aria-hidden="true">&prime;</rb><rp>(</rp><rt>ふん</rt><rp>)</rp></ruby>
25<ruby><rb aria-hidden="true">&Prime;</rb><rp>(</rp><rt>びょう</rt><rp>)</rp></ruby>
</p>
<p>
30<ruby><rb aria-hidden="true">&deg;</rb><rp>(</rp><rt>じかん</rt><rp>)</rp></ruby>
15<ruby><rb aria-hidden="true">&prime;</rb><rp>(</rp><rt>ふん</rt><rp>)</rp></ruby>
25<ruby><rb aria-hidden="true">&Prime;</rb><rp>(</rp><rt>びょう</rt><rp>)</rp></ruby>
</p>
<script id="jsbin-source-css" type="text/css">* {
margin: 0;
padding: 0;
border: 0;
}
body {
font: 30px sans-serif;
}
rt{
display:inline-block;
text-indent:-9999px;
width:1px;
height:1px;
margin:-1px;
overflow:hidden;
-ms-user-select:none;
-webkit-user-select:none;
user-select:none;
}
</script>
</body>
</html>
* {
margin: 0;
padding: 0;
border: 0;
}
body {
font: 30px sans-serif;
}
rt{
display:inline-block;
text-indent:-9999px;
width:1px;
height:1px;
margin:-1px;
overflow:hidden;
-ms-user-select:none;
-webkit-user-select:none;
user-select:none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment