2021-07-01css常用字体代码

**字体高度**font-size:50px;
**字体加粗**font-weight:100-900;
**斜体**font-style:italic;
**字体(默认字体)**font-family: arial;
color:#ff4400   (transparent) **透明色**   
        :rgb(0-255,0-255,0-255) 字**体颜色**
border: 1px solid black         **给容器加边框**
     **粗细  实线**  
           (dashed)
           **条状虚线**
           (dotted)
             **点状虚线**
 **边框粗细**	border-width:10px;
 **边框实线虚线**	border-style:solid;
 	**边框颜色**border-color:red
 	**文字居中**text-align:center;

加背景及颜色 background-color:#f35
直角变圆角 border-radius:10-50%;
width: height:
text-align:像哪边对齐
left: top: right: bottom cneter居中
ling-height:单行文本所占高度
tixt-indent:3em;首行文本缩进字数1em=font-size:1px;
line-height:1.2em;文字的行高1.2倍
EM{font style:normal; color:#c00;}
font style:normal 去除em的斜体(所有标签的初始形态)
padding:0;去除标签自带间距
margin:0;去除标签自带空格
*{ padding:0;
margin:0;}初始化所有标签三个值左右等距
padding:复值 上右下左调像素
margin-left:50px;两个标签之间拉开距离
circle 圆形
opacity:0.5;颜色半透明
overflow:hidden;
vertical-align:0px;调一行元素的对其线;
vertical-align:middle;文字对图片中对齐
display:inline-block;文字横向排列
/设置左上角/方形去除圆角
border-top-left-radius:15px;
/设置左下角/
border-bottom-left-radius:15px;
/设置右上角/
border-top-right-radius:15px;
/设置右下角/
border-bottom-right-radius:15px;
border-radius:15px 15px 0 0 上右下左设置圆角
background-image:linear-gradient(to bottom,#f40,#f50),设置背景颜色渐变;
alert 弹出框

text-decoration    Line-through= <del> **调价标签**      del{   text-decoration:none}**调价标签去掉中划线**
  text-decoration:underline;**加下划线**           text-decoration:overline;**上划线**
  标签加   hover :a:hover{color:#f50}鼠标上去变颜色

  cursor:pointer;**鼠标上去变成小手**      cursor:help;**鼠标上去变问号**    cursor:e-resize;**鼠标上去变拖拽符**

在这里插入图片描述

序号鱼的类型价格
1草鱼100
2浆水鱼鱼200
3食人草鱼1000
4青斑鱼2000
5老虎鱼3000
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值