关于CSS格式与布局中的基础知识的简单操作

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CSS格式与布局</title>

<style type="text/css">

 

*{ margin:0px auto; padding:0px; font-family:微软雅黑}/*注意*/
.创造力{ width:200px;
height:200px;
background-color:#F00;
margin:10px 0px 0px 10px;
float:left;}

#menu{ width:1200px;
height:45px;
background:#90F;
margin-top:20px;}

 

.text{ width:200px;
height:45px;
float:left;
text-align:center;
line-height:45px;
vertical-align:middle;
border-radius:10px;/*圆角*/}


.text:hover{ background-color:#000;
color:#F00;
cursor:pointer;
transition:1s; /*渐变效果*/
box-shadow: #000; /*阴影*/
opacity:0.5; /*半透明效果*/
transform:rotate()}
/*鼠标放上来*/


a{ text-decoration:none;
color:#000;
text-shadow:5px 5px 5px #FF0000;
transform:rotate(360deg);}

 

a:link{ text-decoration:none;
color:#90C;}
a:visited{ text-decoration:none; color:#333;}

a:link{ color:red}
/*鼠标*/
</style>


</head>

<body>


<div class="text">按&nbsp;钮</div>

</body>

posted @ 2017-07-17 21:24  WORSHIP亚萨  阅读(205)  评论(0编辑  收藏  举报