• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
余苏益
博客园    首页    新随笔    联系   管理    订阅  订阅
10.26课堂笔记

ul>(li>a>img+span.title+div>span.money+img+span.num)*15

div*3  新建三个div标签

     <div></div>

    <div></div>

    <div></div>

position: absolute 绝对定位

position:relative 相对定位

border-bottom: 1px dotted #CCCCCC:下划线  dotted 虚线

font-weight: bolder:定义字体粗细的属性

  bold 定义粗体字符。 bolder 定义更粗的字符   normal 字体的粗细: 中等

 text-align: center; 设置居中

:first-child: 伪类向元素的第一个子元素添加样式。

marign: 设置top bottom

font-size:设置字体大小

font-weight:属性设置文本的粗细

text-indent: 2em: /*text-indent 属性规定文本块中首行文本的缩进*/

line-height: 2em:  /* line-height 属性设置行间的距离(行高)*/

display: inline-block: /*相当于浮动 块级元素能够在同一行显示*/

background-image:url() :设置背景图片 记得添加高度(不然不显示图片)

background-repeat: no-repeat; 属性设置是否重复背景图像  不重复

background-position:定位背景图像

hover: 选择器用于选择鼠标指针浮动在上面的元素

display: block:让对象成为块级元素(块级元素可以显示,行元素不能显示)

text-decoration: none:消除文本下划线

border-radius: 10px; 边框弧度

padding:设置宽高

posted on 2021-10-26 12:26  余苏益  阅读(20)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3