HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
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.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
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.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
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.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<style>
.ax_post_box-comment-text-inner img {
max-width: 100%;
}
</style>
<div class="page flex-col" style="background-image: linear-gradient(to bottom, #7877F9, #3E3DA8);">
<div class="box_3 flex-col" style="
display: flex;
width: 100%;
height: 206px;
background: #3E3DA8;
background-size: auto 100%;
background-image: linear-gradient(to bottom, rgba(62,61,168,0) 0%,rgba(62,61,168, 0.1) 80%,rgba(62,61,168,1) 100%),url("https://bu.dusays.com/2023/09/22/650d668578553.png");
background-position: center;
top: 0;
left: 0;
border-radius: 15px 15px 15px 15px;
"><div class="section_1 flex-col" style="
background-image: url("https://bu.dusays.com/2023/09/22/650d5b6ec9ab7.png");
width: 152px;
height: 152px;
display: flex;
margin: 130px auto;
background-size: cover;
"></div></div>
<div class="box_4 flex-col" style="
margin-top: 92px;
">
<div class="text-group_5 flex-col justify-between" style="
display: grid;
margin: 0 20px;
text-align: center;
">
<span class="text_1" style="
font-size: 26px;
font-family: PingFang-SC-Bold, PingFang-SC;
font-weight: bold;
color: #F3E6FF;
line-height: 37px;
text-align: center;
width: 100%;
">嘿!你在 ${SITE_NAME} 博客中收到一条新回复。</span>
<span class="text_2" style="
font-size: 16px;
font-family: PingFang-SC-Bold, PingFang-SC;
font-weight: bold;
color: #FEB3B1;
line-height: 22px;
margin-top: 21px;
text-align: center;
width: 100%;
">你之前的评论 在 ${SITE_NAME} 博客中收到来自 ${NICK} (${MAIL}) 的回复</span>
</div>
<div class="box_2 flex-row" style="
margin: 0 auto;
min-height: 128px;
background: #F3E6FF;
border-radius: 12px;
margin-top: 34px;
display: grid;
padding: 3px 16px 32px 16px;
width: 85%;
">
<div class="text-wrapper_4 flex-col justify-between" style="
display: flex;
width: 100%;
margin: auto;
margin-bottom: 16px;
">
<div style="
width: 100%;
padding:15px 12px 0 12px;
margin-top:0px
">
<div class=Messages_box>
<p style="
font-size: 20px;
display:flex;
color:#3E3DA8;
"><strong style="
font-size: 45px;
color:#F3E6FF;
max-width:506px;
background-color:#7877F9;
padding:3px 10% 4px 10%;
border-radius:9px;
margin: 0 auto;
">📫博主收件箱</strong></p>
<hr style="
display: flex;
border: 2px dashed #3E3DA8;
box-sizing: content-box;
height: 0px;
overflow: visible;
width: 90%;
">
<p style="
font-size: 20px;
display:flex;
color:#3E3DA8
"><strong style="
margin: 0px auto;
font-size: 10px;
color:#F3E6FF;
max-width:506px;
background-color:#7877F980;
padding:3px 60px 4px 60px;
border-radius:9px
">新消息</strong></p>
<p><strong style="
font-size: 20px;
color:#3E3DA8"
>${NICK}</strong><strong style="
color:#E25860;
"> :</strong></p>
<div class="ax_post_box-comments-single Messages-user" style="
display:flex;
margin-bottom:5px;
margin-top:7px;
color:#FEB3B1
">
<div class=ax_post_box-comment-avatar style="
width:auto;
flex:none
"><img src=${IMG}
style="
width:40px;
height:40px;
border-radius:5px
"></div>
<div class=ax_post_box-comment-text style="
margin-left:10px;
display: flex;
"><span
class=ax_post_box-comment-text-before
style="
width:0;
height:0;
border-top:8px solid transparent;
border-bottom:8px solid transparent;
border-right:8px solid;
border-right-color:#3E3DA8;
left:-7px;
right:auto;
margin-top:12px;
"></span>
<div class=ax_post_box-comment-text-inner style="
max-width:506px;
background-color:#3E3DA8;
padding:10px;
border-radius:9px;
margin-bottom:3px;
width:auto;
">${COMMENT}</div></div></div></div></div></div>
<a class="text-wrapper_2 flex-col" style="
min-width: 106px;
height: 38px;
background: #7877F9;
border-radius: 32px;
display: flex;
text-decoration: none;
margin: auto;
margin-top: 32px;
" href="${POST_URL}">
<span class="text_5" style="
color: #F3E6FF;
margin: auto;
">查看详情</span>
</a>
</div>
<div class="text-group_6 flex-col justify-between" style="
display: grid;
text-align: center;
margin-top: 34px;
">
<span class="text_6" style="
height: 17px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #f3e6ff8e;
line-height: 17px;
width: 100%;
">此邮件由评论服务自动发出,直接回复无效。</span>
<a class="text_7" style="
height: 17px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FEB3B1;
line-height: 17px;
margin-top: 6px;
text-decoration: none;
width: 100%;
" href="${SITE_URL}">前往博客</a>
<a class="text_8" style="
height: 17px;
font-size: 12px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #f3e6ff8e;
line-height: 17px;
margin-top: 6px;
text-decoration: none;
"></a>
</div>
</div>
</div>
Also see: Tab Triggers