会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
潜伏r
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
下一页
2020年3月17日
h5-12
摘要: 1、复习 1 <style> 2 *{ 3 margin: 0; 4 padding: 0; 5 } 6 a{ 7 display: block; 8 width: 150px; 9 height: 50px; 10 background-color: #00ffff; 11 font-size:
阅读全文
posted @ 2020-03-17 14:01 潜伏r
阅读(271)
评论(0)
推荐(0)
2020年3月15日
h5-11
摘要: 背景色 background-color dashed实线 透明度 文字不透明 <style> *{ margin: 0; padding: 0; } .box{ width: 200px; height: 200px; /*背景色 rgb() rgba() 透明不影响内容 a透明度 */ back
阅读全文
posted @ 2020-03-15 15:58 潜伏r
阅读(189)
评论(0)
推荐(0)
2020年3月14日
h5-10
摘要: 清除浮动-height 1 <style> 2 *{ 3 margin: 0; 4 padding: 0; 5 } 6 ul,ol{ 7 list-style: none; 8 } 9 .box{ 10 width: 800px; 11 /* height: 100px; */ 12 border:
阅读全文
posted @ 2020-03-14 21:23 潜伏r
阅读(175)
评论(0)
推荐(0)
2020年3月13日
h5-8
摘要: 盒子居中 对于span可以设置margin-left或者right,不能设置top和bottom 关键语句 margin:0 auto; 1 <style> 2 *{ 3 margin: 0; 4 padding: 0; 5 } 6 .box1{ 7 width: 400px; 8 padding:
阅读全文
posted @ 2020-03-13 09:54 潜伏r
阅读(178)
评论(0)
推荐(0)
2020年3月12日
h5-7
摘要: 清除默认样式 1 /*清空默认样式,设置初始样式*/ 2 *{ 3 margin: 0; 写法方便 4 padding: 0; 5 }/* 6 body,ul,li,p{ 7 margin: 0; 效率高 8 padding: 0; 9 }*/ line-height行高 color字体颜色 溢出隐
阅读全文
posted @ 2020-03-12 18:27 潜伏r
阅读(252)
评论(0)
推荐(0)
2020年3月9日
h5-6
摘要: 1 <style> 2 .p1 { 3 font-style: normal; 4 } 5 .p2 { 6 font-style: italic; 7 /* 假如英文字体本身有斜体的话 则显示斜体样式 假如没有则会替换成有斜体的字体 */ 8 } 9 .p3 { 10 font-style: obl
阅读全文
posted @ 2020-03-09 15:06 潜伏r
阅读(135)
评论(0)
推荐(0)
2020年3月8日
h5-5
摘要: 1 <style> 2 #box1 p { 3 color:red; 4 } 5 #box1 #box2 .box3 p { 6 color:green; 7 } 8 /* 9 !important 可以提升权重 10 在就近原则中,无法提升继承的权重 11 */ 12 .box1 .box2 p
阅读全文
posted @ 2020-03-08 16:16 潜伏r
阅读(209)
评论(0)
推荐(0)
2020年3月7日
h5-4
摘要: 通配选择器 *表示所有的标签 1 <div>div</div> 2 <p>p</p> 3 <h1>h1</h1> 4 <ul> 5 <li>item</li> 6 <li>item</li> 7 <li>item</li> 8 </ul> 1 <style> 2 /* 通配符选择器效率低 所以很多工
阅读全文
posted @ 2020-03-07 18:31 潜伏r
阅读(291)
评论(0)
推荐(0)
h5-3
摘要: 实体符(以&开头,以;结尾) < <; > >; 版权© ©; 空格  ; 1 <em>倾斜</em> 2 <strong>加粗</strong> 3 <del>删除线</del> 不常用 1 <div> 2 <!-- 容器 --> 3 这是头部 4 </div> 5 <di
阅读全文
posted @ 2020-03-07 12:00 潜伏r
阅读(230)
评论(0)
推荐(0)
2020年3月6日
h5-2
摘要: 表单 1 <form> 2 <input type="text" /> 3 </form> value表示文本框的默认值,默认文本框并排 1 <form> 2 <input type="text" /> 3 <input type="text" value="请输入用户名"> 4 </form> 可
阅读全文
posted @ 2020-03-06 18:13 潜伏r
阅读(265)
评论(0)
推荐(0)
上一页
1
2
3
下一页
公告