codecamp

HTML 创建有序列表

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
.red-text {
color: red;
}


h2 {
font-family: Lobster, Monospace;
}


p {
font-size: 16px;
font-family: Monospace;
}


.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}


.smaller-image {
width: 100px;
}
</style>


<h2 class="red-text">CatPhotoApp</h2>


<p>Click here for <a href="#">cat photos</a>.</p>


<a href="#"><img class="smaller-image thick-green-border" alt="A cute orange cat lying on its back" src="https://7n.w3cschool.cn/statics/codecamp/images/relaxing-cat.jpg"></a>


<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
  <li></li>
  <li></li>
  <li></li>
</ol>
HTML 创建项目符号无序列表
HTML 创建文本输入框
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

HTML5&CSS

JavaScript

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }