# CSS的常用属性
# 1 颜色属性
# <div style="color:rgb(255,0,0)">ppppp</div>
# 2 字体属性
# font-size: 20px/50%/larger
# font-family:'Lucida Bright'
# font-weight: lighter/bold/border/
# <h1 style="font-style: oblique">老男孩</h1>
# 3 背景属性
# font-style:italic;"># background-image: url('1.jpg');
# background-repeat: no-repeat;(repeat:平铺满)
# background-position: right top(20px 20px);(横向:left center right)(纵向:top center bottom)
# 简写:<body style="background: 20px 20px no-repeat #ff4 url('1.jpg')">
# <div style="width: 300px;height: 300px;background: 20px 20px no-repeat #ff4 url('1.jpg')">
# 4 文本属性
# font-size: 10px;
# text-align: center; 横向排列
# line-height: 200px; 文本行高 通俗的讲,文字高度加上文字上下的空白区域的高度 50%:基于字体大小的百分比
# vertical-align:-4px 设置元素内容的垂直对齐方式 ,只对行内元素有效,对块级元素无效
# text-indent: 150px; 首行缩进
# letter-spacing: 10px;
# word-spacing: 20px;
# text-transform: capitalize;
# 5 边框属性
# border-style: solid;
# border-color: chartreuse;
# border-width: 20px;
# 简写:border: 30px rebeccapurple solid;
# 6 列表属性
# ul,ol{ list-style: decimal-leading-zero;
# list-style: none; <br> list-style: circle;
# list-style: upper-alpha;
# list-style: disc; }
# 7 dispaly属性
# none
# block
# inline
# display:inline-block可做列表布局,其中的类似于图片间的间隙小bug可以通过如下设置解决
# 8 外边距和内边
# margin: 用于控制元素与元素之间的距离;margin的最基本用途就是控制元素周围空间的间隔,从视觉角度上达到相互隔开的目的。
# padding: 用于控制内容与边框之间的距离;
# Border(边框) 围绕在内边距和内容外的边框。
# Content(内容) 盒子的内容,显示文本和图像。

Pyhton学习——Day39的更多相关文章

  1. Pyhton学习——Day26

    #多态:多态指的是一类事物有多种形态# import abc# class Animal(metaclass = abc.ABCMeta):# 同一类事物:动物# @abc.abstractclass ...

  2. pyhton 学习

    官方学习文档 https://docs.python.org/3/tutorial/

  3. 20190320_head first pyhton学习笔记之构建发布

    1.把代码nester.py放入文件夹nester中,在文件夹中再新建一个setup.py文件,文件内容如下: from distutils.core import setup setup( name ...

  4. Pyhton学习——Day2

    Python开发IDE(工具)Pycharm.eclipse1.循环while 条件 #循环体 #条件为真则执行 #条件为假则执行break用于退出所有循环continue用于退出当前循环 2.Pyc ...

  5. Pyhton学习——Day28

    #上下文协议:文件操作时使用with执行# with open('a.txt','w',encoding='utf-8') as f1:# with语句,为了让一个对象兼容with语句,必须在这个对象 ...

  6. Pyhton学习——Day27

    # hasattr(obj,'name')-->obj.name# getattr(obj,'name',default = 'xxx')--->obj.name# setattr(obj ...

  7. Pyhton学习——Day25

    #面向对象的几个方法#1.静态方法@staticmethod,不能访问类属性,也不能访问实例属性,只是类的工具包#2.类方法:@classmethod,在函数属性前加上类方法,显示为(cls)代表类, ...

  8. Pyhton学习——Day24

    # #面向对象设计:# def dog(name,gender,type):# def jiao(dog):# print('One Dog[%s],wfwfwf'%dog['name'])# def ...

  9. Pyhton学习——Day23

    #re模块方法:findall search#findall:返回所有满足匹配条件的数值,放在列表里#search : #函数会在字符串内查找模式匹配,只到找到第一个匹配然后返回一个包含匹配信息的对象 ...

随机推荐

  1. jQuery样式操作

    获取样式和设置样式 <p class='myClass'  title='this is p'>this is p</p> 样式其实就是class属性所以设置和获取样式都能用a ...

  2. PHP回顾之协程

    转载请注明文章出处: https://tlanyan.me/php-review... PHP回顾系列目录 PHP基础 web请求 cookie web响应 session 数据库操作 加解密 Com ...

  3. HDU5976 Detachment

    /* HDU5976 Detachment http://acm.hdu.edu.cn/showproblem.php?pid=5976 数论 等差数列 * * */ #include <cst ...

  4. 工具-docker01

  5. 解决was6版本号过期问题

    原创作品.出自 "深蓝的blog" 博客,欢迎转载.转载时请务必注明出处.否则追究版权法律责任. 深蓝的blog:http://blog.csdn.net/huangyanlong ...

  6. jQuery的父,子,兄弟节点查找方法

    以下罗列一下jQery下节点查找的方法: jQuery.parent(expr) 找父亲节点.能够传入expr进行过滤,比方$("span").parent()或者$(" ...

  7. HDU 2054 A==B? 大数

    Problem Description Give you two numbers A and B, if A is equal to B, you should print "YES&quo ...

  8. Visual studio 编译时copy文件、文件夹

    项目属性--生成事件 添加命令 xcopy /y /d "$(SolutionDir)Dll\Linphone\*.dll" "$(TargetDir)\Linphone ...

  9. gridview in webform

    How to: Enable Default Paging in the GridView Web Server Control https://msdn.microsoft.com/en-us/li ...

  10. zzulioj--1637--Happy Thanksgiving Day - WoW yjj!(水)

    1637: Happy Thanksgiving Day - WoW yjj! Time Limit: 1 Sec  Memory Limit: 128 MB Submit: 104  Solved: ...