您现在的位置是:首页 > 前端 > css网站首页css
常用CSS
- css
- 2018-07-04
- 1102已阅读
- 0
padding、margin -----------内外边距
overflow:hidden; -----------隐藏溢出 清除浮动
clear: both;----------- 清除浮动
border-bottom: 1px dashed #d2d2d2; ----------- 虚线
border-right:1px solid #ddd; ---------------- 右边竖线
text-decoration: none; ------------------ 去掉A标签下划线
overflow: hidden; ------------隐藏溢出
line-height:200%; --------------- 字体上下距离
border-right: 1px solid #e5e5e5; ---------------竖线
style="position: fixed;top: 0px;"------------ 把栏目固定在页面顶部
position:absoulte;z-index:5555; -------------显示在最上层
display:inline-block; ----------------------- 定义为行内元素
display:block ------(定义此元素将显示为块级元素,此元素前后会带有换行符。)
white-space: nowrap; ------------- 规定段落中的文本不进行换行
text-overflow:ellipsis; ------------ 当对象内文本溢出时显示省略标记(...)
@media screen and (min-width: 1201px) {
.banner-1-bottom{height: 28%;}
}-------- 当屏幕的分辨率大于1200时
@media screen and (min-width: 1360px) and (max-width: 1440px) {
.banner-1-bottom{height: 28%;}
}-------- 当屏幕的分辨率为1360-1440时
@media screen and (max-width: 500px) {
.banner-1-bottom{height: 28%;}
}-------- 当屏幕的分辨率小于500时
下一篇:设置input提交按钮背景图片