line-height background 滚动条overflow-y 阴影box-shadow

1 段落行间距 line-height:150%;

2 css : background

在这里插入图片描述
例如:
background: url(…/image/banner_logo.png) no-repeat 10px 0px;
这里图片位置在top:10px处。

3 css : background-position

在这里插入图片描述

4 滚动条问题

页面上有标题head高度为120px,下面是每个菜单对应的jsp,因此下面高度为calc(100% - 120px)

		<section id="license" style="height:calc(100% - 120px); width: 100%;">
			<iframe src="pages/test.jsp" id="workframe" name="workframe" frameborder="0"
				scrolling="auto" style="height:calc(100% - 0px);width: 100%;"></iframe>
		</section> 

初始head高度因为有ul行间距,实际高度为135px,因此如果设置成(100%-120px),jsp的高度其实就超出了所需要的页面高度,因此会出现滚动条。
而使用overflow-y:hidden;可以在内容不超出时隐藏滚动栏。
然后又发现了一个问题。在test.jsp中,我同样设置了高度(100%-0px),初始在内容很少时是没有问题的,但是在页面内容特别长时,我发现比当前页面窗口多出来的部分看不到,但是又不能通过滚动栏拖动到下方。出现这个问题其实是因为div设置了固定高度,test.jsp页面的这个div的高度即上面的(100%-0px)。将其改成height:100%,滚动条就又出现了。
而还有一个更简单的办法就是**verflow-y: auto;**当内容没超过高度的时候,就不会出现滚动条了。这样就不用发愁滚动条的问题啦。
在这里插入图片描述

** 5 box-shadow**

http://www.w3school.com.cn/cssref/pr_box-shadow.asp
在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
/* 全局css变量 */ $--color-primary: #409EFF; .primary-color { color: #409EFF; } .background-opacity { background: rgba(64, 158, 255, 0.6); } .form-widget-list { .ghost{ content: ''; font-size: 0; height: 3px; box-sizing: border-box; background: #409EFF; border: 2px solid #409EFF; outline-width: 0; padding: 0; overflow: hidden; } } .el-form-item--medium { .el-radio { line-height: 36px !important; } .el-rate{ margin-top: 8px; } } .el-form-item--small { .el-radio { line-height: 32px !important; } .el-rate{ margin-top: 6px; } } .el-form-item--mini { .el-radio { line-height: 28px !important; } .el-rate{ margin-top: 4px; } } .el-card { margin-top: 3px; margin-bottom: 3px; } input[type="password"]::-ms-reveal { /* 隐藏IE/Edge原生的密码查看按钮 */ display: none; } /* 滚动条样式 begin */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { width: 8px; background: rgba(#101F1C, 0.1); -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } ::-webkit-scrollbar-thumb { background-color: rgba(#101F1C, 0.35); background-clip: padding-box; min-height: 28px; -webkit-border-radius: 2em; -moz-border-radius: 2em; border-radius: 2em; } ::-webkit-scrollbar-thumb:hover { background-color: rgba(#101F1C, 0.85); } * {//Firefox浏览器滚动条样式 scrollbar-color: #e5e5e5 #f7f7f9; //滚动条轨道颜色、滚动条滑块的颜色 scrollbar-width: thin; //thin模式下滚动条两端的三角按钮会消失 } /* body {//IE浏览器滚动条样式 scrollbar-shadow-color: #e5e5e5; scrollbar-face-color: #e5e5e5; scrollbar-base-color: #ffffff; scrollbar-arrow-color: #444040; } */ /* 滚动条样式 end */
最新发布
06-10
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值