Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Web字体Toss</title>
</head>

<body>
  <hr noshade color="#0066cc"></hr>
  <p>测试下-直接使用的是阿里妈妈在线生成的</p>
  <p class="web-font">晚晴幽草轩-</p>
  <p class="web-font">晚晴呀幽草呀轩-</p>
  <hr noshade color="#0066cc"></hr>
<p>测试下-生成的base64编码字体</p>
  <p class="webfontBase">晚晴幽草轩-</p>
  <p class="webfontBase">晚晴乎幽草乎轩-</p
  <hr noshade color="#0066cc"></hr>
</body>
</html>
              
            
!

CSS

              
                @font-face {
    font-family: 'webfont';
    src: url('https://at.alicdn.com/t/glgkzeyrgbonu3di.eot');
    /* IE9*/
    src: url('https://at.alicdn.com/t/glgkzeyrgbonu3di.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('https://at.alicdn.com/t/glgkzeyrgbonu3di.woff') format('woff'), /* chrome、firefox */
    url('https://at.alicdn.com/t/glgkzeyrgbonu3di.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
    url('https://at.alicdn.com/t/glgkzeyrgbonu3di.svg#NotoSansHans-Black') format('svg');
    /* iOS 4.1- */
}

.web-font {
    font-family: "webfont" !important;
    font-size: 2em;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    /*//字体抗锯齿*/
    -webkit-text-stroke-width: 0.2px;
    /*//设置或检索对象中的文字的描边宽度。可取小数和medium(描边宽度中等), thick(描边宽度粗), thin(描边宽度细)关键字。默认值为0。*/
    -moz-osx-font-smoothing: grayscale;
    /*//字体抗锯齿*/
}

/*--------------------------------------------------------------------*/

@font-face {
    font-family: 'webfontBase';
    src: url(data:font/truetype;charset=utf-8;base64,d09GRgABAAAAAAikAA8AAAAAC8AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABWAAAABoAAAAccNxHekdERUYAAAF0AAAAHwAAACAANgAGT1MvMgAAAZQAAABAAAAAVlZ9871jbWFwAAAB1AAAAFkAAAFy6kdehGdhc3AAAAIwAAAACAAAAAj//wADZ2x5ZgAAAjgAAAQ3AAAE/MnuHxpoZWFkAAAGcAAAADEAAAA2B8HohWhoZWEAAAakAAAAHgAAACQHhgOQaG10eAAABsQAAAAiAAAAIhdRAPhsb2NhAAAG6AAAABQAAAAUBJQFrG1heHAAAAb8AAAAHQAAACAAVACEbmFtZQAABxwAAAD7AAACW/SQw1Bwb3N0AAAIGAAAAEsAAABnfq4VdnZoZWEAAAhkAAAAIgAAACQFMhKJdm10eAAACIgAAAAaAAAAGhSeCfB4nGNgYGBkAIIztovOg+hL/kGhMBoARmsGDAAAeJxjYGRgYOADYgkGEGBiYGRgZuAAkixgHgMABLwAPQB4nGNgZF7K3MLAysDB1MW0h4GBoQdCMz5gMGRkYkAFjBxInIA01xQGBYaK/kzmgv8dDFHM4QyJIDUgOQDyHgt7eJxjYGBgZoBgGQZGBhDIAfIYwXwWhgAgLQCEzGCZirjatKi0kmbP/sz//7GJ/O9b2DZz1cyJNfsK5kNNQwGMbAxwYUYmIMGErgBTD7UAG+2MJgkAABOUFgQAAAAAAAAB//8AAnic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1cCOQNXA1YAAA==) format('truetype');
    font-weight: normal;
    font-style: normal
}

.webfontBase {
    font-family: "webfontBase" !important;
    font-size: 2em;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    /*//字体抗锯齿*/
    -webkit-text-stroke-width: 0.2px;
    /*//设置或检索对象中的文字的描边宽度。可取小数和medium(描边宽度中等), thick(描边宽度粗), thin(描边宽度细)关键字。默认值为0。*/
    -moz-osx-font-smoothing: grayscale;
    /*//字体抗锯齿*/
}
              
            
!

JS

              
                
              
            
!
999px

Console