平时需要编写些HTML和JS代码,所以业余时间找了下相关线上运行HTML和JS的网站,这里汇总一下。

这里面收集的网站地址,都可以在“程序员快速导航网” 上找到。
附地址:程序员快速导航网

HTML代码在线运行和预览网站汇总:

1:http://jsrun/Cj2Kp/edit

2:http://zouni.run/

3:http://3br/htmlbasic.html

4:https://www.w3school/tiy/t.asp?f=html5_audio

5:https://jsbin/?html,output

6:http://www.52yoga/tools/run/

HTML案例代码

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script src="https://code.jquery/jquery-1.9.1.js"></script>
</head>
<body>
<!-- 活动 -->
<style type="text/css">
.guize_html {position:fixed; top: 15%; left: 50%; margin-top: -10px; margin-left: -230px; width: 460px; height: auto; border-radius:3px; background-color: #fff; }
.guize_html_nei p { margin: 10px 0 20px; }
p.gz-small { font-size: 15px; color: #ea3a3a; }
.guize_html_nei h3 { text-align: center; font-size: 1.2em;}
.guize_html_nei p img { max-width: 100%; margin: auto; }
.bth { text-align: center; }
.guize_html_nei { display: block; font-size: 16px; line-height: 24px; padding: 20px 30px 0; }
.btn { display: block; border-radius: 4px; background-color: #919191; color: #fff; text-align: center;cursor: pointer;padding: 5px 15px;float: right;}
.overfloat {position: fixed; top: 0; left: 0; z-index: 99999; display: none; width: 100%; height: 100%; background-color: rgba(1,1,1,.5) }
.bth-buy {display: block; border-radius: 3px; background-color: #ff6434; color: #fff; text-align: center;cursor: pointer; padding: 5px 15px;float: left;}
.bth-buy a { display: block; color: #fff; }
@media only screen and (max-width: 480px) {
.guize_html {width: 300px;left: 20px;top: 25%;margin-left: 0;}
.guize_html_nei {padding: 20px 10px; font-size: 0.8em;}
.guize_html_nei blockquote{font-size:0.8em !important;color: #666;background: #fbfbfb;border-left-color: #e5e5e5;}
.guize_html_nei p {margin: 10px 0;}
.guize_html_nei p img{display:none}
}
.anniu{width: 200px;margin: 0 auto;margin-bottom: 10px;overflow: hidden;}
</style>

<div class="overfloat" id="gui_kai">
<div class="guize_html">
<div class="guize_html_nei">
<h3>2020年阿里云618大促活动(有香港主机)</h3>
<blockquote style="font-size: 0.8em;padding: 10px 15px;margin: 10px 0;background-color: whitesmoke;word-break: break-word;border-radius: 3px;">
1核/2G/1M---91元1年,三年367元;<br>
2核/4G/1M---414元1年,三年1243元;<br>
2核/8G/1M---624元1年,三年1640元;<br>
1核2G(香港,不用备案)---249元1年,三年888元;<a style="color: #ff00ff;font-weight: 600" href="http://tencent.yundashi168/430.html">点击直达</a><br>
还有还有4核8G6M、8核16G10M配置,价格很低很低!
</blockquote>
    <p class="gz-small">注意:这个价,只有新用户才能看到;老用户借用家人身份重新注册,这个价格重新注册也不亏!</p>
</div>
<div class="anniu">
	<div class="bth-buy"><a href="https://www.aliyun/activity/618/index%20?spm=5176.13735996.fszjobuve.d83.4fc53b5ag2LbFA&userCode=ywqc0ubl&scm=20140722.2018.2.2000" target="_blank" title="阿里云服务器优惠活动">去看一看</a></div>
	<div id="g_close" class="btn">我知道了</div>
</div>
</div>
</div>
<script type="text/javascript">
  $(function() {
 $("#gui_kai").show();
  });

$('#g_close').click(function(){
 $("#gui_kai").hide();
});
</script>

<!-- 活动 end -->
  
  
</body>
</html>

可以复制上述代码,然后依次尝试下运行,看下效果!

更多推荐

html代码在线运行_在线运行html代码