2015-06-02 using special fonts in HTML

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.