摘要:
亿贝网页 html: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>banner</title> <style type="text/css"> .content{ height: 261px; background-imag 阅读全文
posted @ 2026-05-31 13:24
今今日晴
阅读(3)
评论(0)
推荐(0)
摘要:
相对绝对定位 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>相对绝对定位</title> <style type="text/css"> .parent{ /*800*400,边框10像素红色,水平居中*/ margin: 1 阅读全文
posted @ 2026-05-31 13:20
今今日晴
阅读(2)
评论(0)
推荐(0)
摘要:
如何动态改变css样式 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> *{margin: 0;padding: 0;} div{ margin: 0 auto; 阅读全文
posted @ 2026-05-31 13:15
今今日晴
阅读(2)
评论(0)
推荐(0)
摘要:
一、文本折叠省略号效果 分为单行省略、多行省略,核心依赖 overflow 、 text-overflow 、 white-space 组合。 单行文本省略(兼容性最优) 必备三属性,缺一不可 .box { width: 300px; /* 必须设置宽度 */ white-space: nowrap 阅读全文
posted @ 2026-05-31 13:03
今今日晴
阅读(3)
评论(0)
推荐(0)
摘要:
CSS auto、float 与父级高度塌陷 一、float 浮动 作用与取值 float :让元素脱离标准文档流,向左/向右浮动排列 常用值: float: left :左浮动 float: right :右浮动 float: none :默认,不浮动 浮动特性 元素脱离普通流,不再占据原有文档流 阅读全文
posted @ 2026-05-31 13:03
今今日晴
阅读(4)
评论(0)
推荐(0)
浙公网安备 33010602011771号