会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
橙橙橙
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
下一页
2019年10月17日
4.渐变按钮和旋转菜单
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>背景渐变</title> <style type="text/css"> input{ width: 90px; height: 40px; margin: 5px; font-s
阅读全文
posted @ 2019-10-17 19:50 cjl2019
阅读(163)
评论(0)
推荐(0)
2019年10月15日
3.css3中多个背景图片的用法
摘要: (background-clip裁剪,background-position位置,background-origin定位,background-repeat是否重复) <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>表格</ti
阅读全文
posted @ 2019-10-15 16:54 cjl2019
阅读(660)
评论(0)
推荐(0)
6.盒模型:margin/padding/border/box-sizing
摘要: (1) margin/padding:外边距/内边距 · margin-top/padding-top · margin-right/padding-right · margin-bottom/padding-bottom · margin-left/padding-left margin:* 同时
阅读全文
posted @ 2019-10-15 11:36 cjl2019
阅读(138)
评论(0)
推荐(0)
2019年10月14日
2.圆角菜单的两种方法和菜单的缩放
摘要: 方法一:设置成背景图片 style{background:url(../image/2.jpg);} <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>垂直菜单</title> <style type="text/css"> *{
阅读全文
posted @ 2019-10-14 18:53 cjl2019
阅读(179)
评论(0)
推荐(0)
2019年10月12日
5.背景:background
摘要: (1) background-color:背景颜色(2) background-image:url(' ') 把图像设置为背景(3) background-repeat:设置背景图像如何重复 · no-repeat:不重复 · repeat-x: 沿着x方向重复(4) background-posi
阅读全文
posted @ 2019-10-12 17:37 cjl2019
阅读(719)
评论(0)
推荐(0)
4.文本:text
摘要: (1) color:颜色 <p style="color:red;">更改文字颜色</p> (2) line-height:行高 <p style="line-height:4em;">更改行高</p> (3) text-align:文本水平对齐方式 · left: 默认值(对齐父元素基线) · r
阅读全文
posted @ 2019-10-12 17:34 cjl2019
阅读(275)
评论(0)
推荐(0)
2019年10月11日
1.利用canvas画一个太极图
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>太极图</title> </head> <body> <canvas id="myCanvas" width="1300px" height="600px" style="back
阅读全文
posted @ 2019-10-11 16:08 cjl2019
阅读(251)
评论(0)
推荐(0)
3.文字:font
摘要: (1) font-size:大小 · 通常使用px、em、rem、百分比为单位设置大小 · xx-small、x-small、small、medium、large、x-large、xx-large,默认medium · smaller:设置为比父元素更小的尺寸 · larger: 设置为比父元素更大
阅读全文
posted @ 2019-10-11 11:42 cjl2019
阅读(203)
评论(0)
推荐(0)
2.选择器
摘要: 1.常用选择器 //1.通用选择器 *{color: red;} //元素选择器 p{color: red;} //类选择器 .class{color: red;} //id选择器 #class{color: red;} 2.关系选择器 //后代选择器:选择ul里面所有的元素,包括li里面的子元素
阅读全文
posted @ 2019-10-11 11:37 cjl2019
阅读(310)
评论(0)
推荐(0)
1.css基础
摘要: 1.块级元素、行级元素、行内块级元素 名称 关键代码 效果 (1)块级元素(div、h、p) · 可以设置宽高 · 不能和其他元素待在一行 · 当没有设置宽高时,宽度和父级宽度一样,高度由元素内容高度决定 <div>块级元素1</div> <div>块级元素2</div> (2)行级元素(span、
阅读全文
posted @ 2019-10-11 11:28 cjl2019
阅读(170)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
下一页
公告