关于w3school上学习css的简单总结(二)

练手可以去官网看看http://www.w3school.com.cn/h.asp

外部样式表

<link rel="stylesheet" type="text/css" href="" />

内部样式表

<style type="text/css"> p {} body {} </style>

内联样式

<p style="color: sienna; margin-left: 20px">
This is a paragraph
</p>

css文本

下面格式是我测试乱打的,只是记录一下

.test{
backgroud-color:yellow;
color:red;
direction:rtl;
line_height:1.5;
letter-spacing:10px;
word-spacing:20px;
text-align:center;
text-decoration:underline;
text-indent:-5em;
padding-left:5em;
text-shadow:5px 5px 5px #FF0000;
text-transform:capitalize
white-space:pre-line;
unicode-bidi:embed;
}

p.test2{
font:italic bold 12px arial,sans-serif;
}
p.test{
font-family:arial;
font-size:150%;
font-style:italic;
font-variant:normal;
font-weight:bold;
}

.test{
background-color:yellow;
}
body

  background-image:url('/i/eg_bg_03.gif');
  background-repeat:no-repeat;
  background-attachment:fixed;
  background-position:center;
}

eg2:body

background: #ff0000 url(/i/eg_bg_03.gif) no-repeat fixed center;

}

.test{
list-style-type:katakana-iroha;
list-style-position: inside;
}
.test2{
list-style-image: url('/i/eg_arrow.gif');
list-style-position: outside;
}

caption-side:bottom
}
table
  {
  border-collapse:separate;
  border-spacing:10px 30px;
  empty-cells:hide;
  table-layout: automatic;
  }

table, td, th
  {
  border:1px solid black;
  }

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">

{
border:red solid thin;
outline:#00ff00 dotted thick;
}
.test{
outline-color:green;
outline-style:dotted;
outline-width:3px;
}
</style>
</head>

<body>
<p><b>注释:</b>只有在规定了 !DOCTYPE 时,Internet Explorer 8 (以及更高版本) 才支持 outline 属性。</p>
<p class="test"><b>注释:</b>只有在规定了 !DOCTYPE 时,Internet Explorer 8 (以及更高版本) 才支持 outline 属性。</p>
</body>
</html>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值