随笔分类 - css
摘要:width: 100%; height: 100%; display: flex; flex-direction: row;/*这里可以不写,flex布局默认方向横向即row*/ justify-content: center; align-items: center;
阅读全文
摘要:给外层DIV 添加CSS属性: display: table; 给DIV的子元素DIV1和DIV2添加属性: display:table-cell;
阅读全文
摘要:<!DOCTYPE html> <html> <head> <title>多个div高度保持一致</title> <style type="text/css"> #parent { color: #fff; width: 1140px; margin: 0px auto; border: 1px s
阅读全文
摘要:<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> #div1{ width: 200px; height: 138px; border: #000 solid 1p
阅读全文
摘要:<style>.jjfatxt { position: absolute; width: 100%; height: 100%; background: transparent; left: 0; top: 0; transform: translateY(101%) } .xtjjfa_list
阅读全文
摘要:display: inline-block;vertical-align: top;
阅读全文
摘要:width: 1200px;margin: 0 auto;overflow: auto;zoom: 1;
阅读全文
摘要:ul { width: 100%; display: flex; flex-wrap: wrap;} li { flex: 1; width: 25%; min-width: 25%; max-width: 25%; }
阅读全文
摘要:一般情况下,根据分辨率加载pc端 wap端 pad端三个css文件,示例: 只有一个css文件情况下,根据分辨率调整css样式,示例:
阅读全文
摘要:多行溢出显示省略号: 单行文本溢出显示省略号:
阅读全文