css学习笔记(1)加入方法 文本属性 颜色和背景

郁闷,需要修改设备的页面,也就顺便把这些东西的细节都学习一下吧。

1、加入CSS有三种方法:

(1)

  <style>
   <!--
   div
   {width:200; filter: blur(add=true, direction=135, strength=20)};
   -->
  </style>

(2)

<p style="font-size:96;font-style:bold;color:blue;">hongen</p>

(3)

<link rel=stylesheet href=“style.css”>

2、字体属性

font-family:使用什么字体

font-style:是否斜体。normal italic oblique

font-variant:是否小体大写。normal small-caps

font-weight:字体粗细。normal bold bloder lithter等

font-size:字体大小。absolute-size relative-size length percentage等。

例如:

<p style="font-style:oblique;font-variant:small-caps;font-weigth:bold;font-size:96;font-family:GlitzyCurl;color:blue;">hongen</p>

3、颜色和背景属性

color:颜色。p{color:red}

background-color:背景颜色。p {backgroup-color:blue}

background-image:背景图片。body {background-image:url(.jpg)}。图片路径

background-repeat:背景图片重复方式。body {background-repeat:repeat-y}。repeat-x  repeat-y no-repeat

background-attachment:设置滚动。body {background-attachment:scroll}。scroll fixed

background-position:背景图片初始位置。body {background:url top center}。percentage length top left right

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值