
正文
11.23CSS笔记
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
每一步的编写过程都在代码里面书写了,暂且记录下来
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" content="This is a meta data" name="dengyexun">
<title>Title</title>
<link rel="stylesheet" type="text/css" href="home.html">
<style>
body { }
a:link{
color: burlywood;
text-decoration: none;
}
a:visited{
color: #FF0000;
text-decoration: none;
}
a:hover{
color: blueviolet;
text-decoration: underline;
}
a:active{
color: darkmagenta;
}
p.fix_pos {
font-family: SansSerif, 'Times New Roman';
font-size: 30px;
font-style: italic;
font-weight: bold;
position: fixed;
top: 300px;
right: 10px;
}
{# h1 {#}
{# color: cornflowerblue;#}
{# text-align: center;#}
{# }#}
#hcolor {
color: aquamarine;
letter-spacing: 2px;
text-align: center;
text-shadow: 2px 2px #FF0000;
}
a {
display: block;
width: 80px;
background-color: #98bf21;
}
#getIn {
height: 20px;
width: 100px;
background-color: burlywood;
}
ul.animal{
list-style-type: square;
}
ul.trans{
list-style-type: circle;
}
#info{
font-family: SansSerif;
width: 40%;
border-collapse: collapse;
}
#info td, #info th{
font-size: 1em;
border: 1px solid #98bf21;
padding: 3px 7px 2px 7px;
}
#info th{
font-size: 1.1em;
text-align: left;
padding-top: 5px;
padding-bottom:4px;
background-color: #a7c942;
color: #ffffff;
}
#info tr.alt td{
color: #000000;
background-color: #eaf2d3;
} div.ex{
width: 220px;
padding: 10px;
border-top-style: groove;
border-right-style: solid;
border-bottom-style: groove;
border-left-style: solid;
margin: 5px;
outline: dotted green;
}
h2.left_pos{
position: absolute;
top: 50px;
left: 20px;
}
h2.right_pos{
position: relative;
right: 20px;
}
#clip_pic{
position: absolute;
clip: rect(30px,200px,200px,20px);
}
div.scroll{
background-color: gray;
width: 100px;
height: 180px;
overflow: scroll;
}
div.container{
width: 100%;
border: 1px solid gray;
margin:0px;
line-height: 150%;
}
div.header , div.footer {
padding: 0.5em;
background-color: gray;
clear: left;
color: white;
}
h1.header{
padding: 0px;
margin: 0px;
}
div.left{
float: left;
width: 180px;
margin: 1px;
padding: 1em;
}
div.content{
margin-left: 190px;
border-left: 1px solid gray;
padding: 1em;
}
div.auto_center{
margin-left: auto;
margin-right: auto;
width: 70%;
}
div.left {
position: absolute;
left: 8px;
width: 100px;
}
a.wei:visited {
color: #98bf21;
}
p:first-line{
color: #98bf21;
font-family: SansSerif;
}
p:first-letter{
color: black;
font-size: x-large;
}
h1:before{
content: url("/static/img/dyx.png");
}
h1:after{
content:url("/static/img/dyx.png");
}
ul{
list-style-type: none;
margin: 10px;
padding: 0px;
}
</style>
</head>
<body> <input id="getIn" type="text" name="one"/>
<p class="fix_pos">This is a fixed position</p>
<script>
document.write('hello!')
</script>
<br>
<br>
<br>
<br>
<br>
<br>
<h2 class="left_pos">This is a relative position</h2>
<h2 class="right_pos">This is a relative position</h2>
<h2>This is a relative position</h2> <ul class="animal">
<li>cat</li>
<li>dog</li>
<li>pig</li>
</ul>
<ul class="trans">
<li>bike</li>
<li>car</li>
<li>plane</li>
</ul>
<table>
<tr>
<th>list_01</th>
<th>list_02</th>
<th>list_03</th>
</tr>
<tr>
<td>dog</td>
<td>cat</td>
<td>bird</td>
</tr>
<tr>
<td>flower</td>
<td>green</td>
<td>blue</td>
</tr>
</table>
<br> <table id="info">
<tr>
<th>name</th>
<th>age</th>
<th>sex</th>
</tr>
<tr class="alt">
<td>Brown</td>
<td>23</td>
<td>male</td>
</tr>
<tr>
<td>Alice</td>
<td>18</td>
<td>female</td>
</tr>
<tr class="alt">
<td>Bob</td>
<td>33</td>
<td>male</td>
</tr>
<tr>
<td>Tom</td>
<td>17</td>
<td>male</td>
</tr>
<tr class="alt">
<td>Jerry</td>
<td>18</td>
<td>female</td>
</tr>
<tr>
<td>King</td>
<td>5</td>
<td>male</td>
</tr>
</table> <div class="ex">
This is a temp
I like you
I would like to give you some colors see see!
</div> {# <img id="true_pic" src="/static/img/dyx.png" width="300" height="350" alt="this is a picture">#}
{# <img id="clip_pic" src="/static/img/dyx.png" width="300" height="300">#} <div class="scroll">
键盘上有3个指示灯,左边两个对应于常用的Num lock和Caps Lock键,想必大家都熟悉,下面为大家介绍对应最右边指示灯的Scroll Lock键:
Scroll Lock键最早出现在IBM的PC/XT机型的83键盘和AT接口的84键盘上,这个键不仅仅出现在PC机的101键盘上,连苹果机的“增强”型键盘上也加上了该按键。该键在DOS时期用处很大,由于当时显示技术,限制了屏幕只能显示宽25行、长80个字符的文字,在阅读文档时,使用该键能非常方便地翻滚页面。
</div> <span style="cursor: text">
text
</span>
<span style="cursor: alias">
alias
</span>
<span style="cursor: crosshair">
crosshair
</span>
<span style="cursor: inherit">
inherit
</span> <br>
<br>
<br>
<div class="container">
<div class="header"><h1 class="header">I am very sad yesterday and today!Because I lost my IDcard</h1> </div>
<div class="left">Don't be afraid! I can got it! you must love the life</div>
<div class="content">国家科技部国际合作科技项目评审专家;国家科技部人才留学评审专家;
国际国内学术期刊Neurocomputing, IEEE 会刊,中国科学E辑、自然科学进展、电子学报、软件学报、自动化学报等评审专家</div>
<div class="footer">Copyright 2017 by deng</div> </div> <br>
<div class="auto_center">
国家科技部国际合作科技项目评审专家国家科技部国际合作科技项目评审专家国家科技部国际合作科技项目评审专家
</div>
<br>
<br>
<a class="wei" href="show.html">点击</a>
<p>国家科技部国际合作科技项目评审专家国家科技部国际合作科技项目<br>
评审专家国家科技部国际合作科技项目评审专家评审专家国家科技部国际合作科技项目评审专家</p>
<ul>
<li><a href="home.html">Home</a></li>
<li><a href="home.html">News</a></li>
<li><a href="home.html">Contact</a></li>
<li><a href="home.html">About</a></li>
</ul> </body>
</html>







