Purpose: A poem that requires reading from right to left, arranged vertically, similar to ancient prose
:
HTML content:
<!doctype html>
<meta charset= "UTF-8" >
<title> use special fonts in HTML </title>
<link rel= "stylesheet" href= "Index.css" >
<style>
p{font-size:54px;}
</style>
<body>
<div class= "realistic" style= "width:1200px;height:800px;" >
<span> South Wakako Word two </span>
<span> Willow Words </span>
<p> One Foot Crimson victory Chisi </p>
<p> is not as good as new </p>
<p> Acacia Peach Core Final hate </p>
<p> Li Xu no one </p>
<p> Deep Bottom Light candle </p>
<p> Total lang long line mo Weiqi </p>
<p> exquisite dice on the red bean </p>
<p> Acacia know </p>
</div>
</body>
INDEX.CSS content:
@font-face {
font-family: ' Pinghei ';
Src:url (' Pinghei.eot ');
Src:
URL (' Pinghei.eot #font-spider ') format (' Embedded-opentype '),
URL (' pinghei.woff ') format (' Woff '),
url (' pinghei.ttf ') format (' TrueType '),
URL (' pinghei.svg ') format (' SVG ');
Font-weight:normal;
Font-style:normal;
}
@font-face {
font-family: ' Font2 ';
Src:url (' Font2.eot ');
Src:
URL (' Font2.eot #font-spider ') format (' Embedded-opentype '),
URL (' font2.woff ') format (' Woff '),
url (' font2.ttf ') format (' TrueType '),
URL (' font2.svg ') format (' SVG ');
Font-weight:normal;
Font-style:normal;
}
/* Specify the font using the selector */
p{
/*-webkit-writing-mode:vertical-rl;*/
font-family: ' Pinghei ';
Margin:0 0.5em;
Line-height:1.2em;
letter-spacing:10px;
}
span{
font-family: ' Font2 '
}
. Realistic {
-WEBKIT-WRITING-MODE:VERTICAL-RL;
Color: $color;
font-size:40px;
Position:absolute;
Top: $top;
Left: -400px;
-webkit-filter:contrast (7);
opacity:1/(($steps));
transform-origin:900px 280px;
max-width:1200px;
Transform:scale ($scale, $scale) Perspective ($perspective) Rotatey ($rotationY) Rotatex ($rotationX);
text-shadow:0 0 3px transparentize ($color, 0.4), 0 0 1px transparentize ($color, 0.8);
Text-align:left;
}
Source file:
Http://yunpan.cn/cwkdus2HhjZKB (Extract code: 9A47)
2015-06-02 using special fonts in HTML