摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* 清除浏览器默认样式 */ *{ margin: 0; padding: 0; } .box1{ width: 阅读全文
posted @ 2021-07-03 20:38 2237774566 阅读(38) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box1{ width: 100px; height: 100px; background-color:red 阅读全文
posted @ 2021-07-03 20:37 2237774566 阅读(34) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box1{ width: 200px; height: 200px; background-color: #BB 阅读全文
posted @ 2021-07-03 20:22 2237774566 阅读(46) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .box1{ /* width内容区宽度 height 内容区高度 width和height只是设置盒子内容区大小 阅读全文
posted @ 2021-07-01 21:14 2237774566 阅读(75) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>文本标签及样式</title> <style type="text/css"> /* text-transform可以用来设置文本大小写 可选值: none 默认值 ,不做任何处理 阅读全文
posted @ 2021-07-01 20:03 2237774566 阅读(92) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /*css中没有直接设置行间距的方式 通过设置行高进行设置行间距 line-height设置行高 行间距 = 行高 阅读全文
posted @ 2021-07-01 16:43 2237774566 阅读(124) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>字体其他样式</title> <style type="text/css"> .p1{ color: #FF0000; font-size: 30px; font-family: 阅读全文
posted @ 2021-07-01 15:01 2237774566 阅读(79) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <!-- 网页中将字体分为五大类 serif(衬线字体) • sans-serif(非衬线字体) • monospace (等宽字体 阅读全文
posted @ 2021-07-01 11:53 2237774566 阅读(342) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> .p1{ /* 设置字体颜色 color设置颜色 font-size设置的并不是文字本身大小 页面中,每个文字都是 阅读全文
posted @ 2021-07-01 11:09 2237774566 阅读(170) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <style type="text/css"> /* 使用十六进制的rgb值表示颜色 使用三组两位的十六进制数组表示一个颜色 语法:#红色绿色蓝色 十六进制 0 阅读全文
posted @ 2021-07-01 10:47 2237774566 阅读(583) 评论(0) 推荐(0)