随笔分类 -  css

html+css 写出三角形状
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-10-14 15:38 totau 阅读(29) 评论(0) 推荐(0) 编辑

css 公共样式base.css
摘要:body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, input{ margin: 0; padding: 0; } *{ /* 内减模式 */ box-sizing: border-box; } body{ font: 16px/1.5 阅读全文

posted @ 2022-10-06 11:55 totau 阅读(209) 评论(0) 推荐(0) 编辑

css 图片居中显示
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-10-05 17:35 totau 阅读(97) 评论(0) 推荐(0) 编辑

css 定位
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-10-04 20:37 totau 阅读(14) 评论(0) 推荐(0) 编辑

定位
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-09-30 20:46 totau 阅读(30) 评论(0) 推荐(0) 编辑

css 外边距塌陷问题
摘要:两个块级元素嵌套,如果里面的元素没有设置border 属性,在内层的 元素使用margin 时会把父元素节点 也会跟着移动, 故外边距塌陷问题, 解决方法 ,可以给父元素添加border ,或者给父元素 添加一个属性 overflow: hidden;的属性 <!DOCTYPE html> <htm 阅读全文

posted @ 2022-09-26 10:51 totau 阅读(52) 评论(0) 推荐(0) 编辑

css 清除浮动的方式
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-09-26 10:23 totau 阅读(27) 评论(0) 推荐(0) 编辑

css 块级样式 浮动(float) 与转为 display = inline-block区别
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-09-23 15:28 totau 阅读(22) 评论(0) 推荐(0) 编辑

css 结构伪类选择器
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-09-22 16:12 totau 阅读(10) 评论(0) 推荐(0) 编辑

css 列表样式,<a> 连接文字超长省略
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2022-09-22 10:49 totau 阅读(82) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示