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

              
                <h2 class="icon">Let's go to whqet's blog</h2>
<p>前端开发whqet,<a class="blog" href="http://blog.csdn.net/whqet/">王海庆的技术博客</a>,关注前端开发,分享相关资源,希望可以对您有所帮助。csdn专家博客http://blog.csdn.net/whqet和个人独立博客https://whqet.github.io同步更新,希望可以得到您的支持与肯定,您的支持是我最大的动力!王海庆,浙江邮电职业技术学院软件技术青椒一枚,其貌不扬、其名不翔,关心技术、热爱生活,我爱<a class="link" href="#">怒放的生命</a>。</p>


              
            
!

CSS

              
                /*使用googlefont*/
@import url(//fonts.googleapis.com/css?family=Cedarville+Cursive);
/*使用渐变划线,利用text-shadow隔离线条*/
h2.icon{
  margin:10px 0;
  display: inline-block;
  font-size:3em;
  width:auto;
  font-family:Cedarville Cursive;
  text-shadow: 2px 0 0 #fff, -2px 0 0 #fff;
  color: #000;
  background-image: linear-gradient( to right, currentColor 0%, #fff 120% );
  background-repeat: repeat-x;
  background-position: 0 75%;
  background-size: 100% 3px;
}
p{
  text-indent: 2em;
  line-height: 1.5em;
}
a.blog,a.link{ 
  text-decoration: none;
  font-weight:bold;
  position: relative;
  margin-right:4px;
}
/*应用到后代伪类元素*/
a.blog           { color: #900; }
a.blog:hover,
a.blog:focus     { color: #990; }
a.blog:active    { color: #999; }

a.blog::after{
  width: 0;
	height: 0;
	border: 0.4em solid transparent;
	border-right: none;
	content: '';
  position:absolute;
  right:-6px;
  top:2px;
}

a.blog::after,
a.blog:hover::after,
a.blog:focus::after,
a.blog:active::after
{
    border-left-color: currentColor;
}
/* 结合动画应用 */
a.link{ 
  color: #900; 
  animation:go 2s infinite;
}
a.link::before,
a.link::after{
  content: '';
  width:100%;
	height: 2px;
	background-color: currentColor;
	position:absolute;
  left:0;
}
a.link::before{
  top:-4px;
}
a.link::after{
  bottom:-4px;
}
@keyframes go{
  0% {color:#900}
  33%{color:#090}
  66%{color:#009}
}
              
            
!

JS

              
                
              
            
!
999px

Console