Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

              
                <div class="content">
  <p class="p">CSS 否定伪类选择器 <em>:not(X)</em>,是以一个简单的以选择器 `X` 为参数的功能性标记函数,将从匹配的元素集合中排除选择器 `X` 所匹配的元素。选择器 `X` 中不能包含另外一个 <em>:not()</em> 选择器。</p>

  <div class="notice"><em>:not()</em> 伪类可以将一个或多个以逗号分隔的选择器作为其参数。但是以多个以逗号分隔的选择器作为参数是实验性的,尚未广泛支持。</div>

  <p class="p"><em>:not()</em> 伪类时我们得选择器组合更加灵活,我们来看一些简单的应用</p>
</div>
              
            
!

CSS

              
                .content :not(.notice) em{
  color:red
}
.content .notice{ 
     background: #ffe7e8;
    border-left: 4px #e66465 solid;
  padding:10px;
}
              
            
!

JS

              
                
              
            
!
999px

Console