css
Tempta36
这个作者很懒,什么都没留下…
展开
-
css公用
body { margin: 0; padding: 0; font-family: "FZLT_Default","Source Han Sans","Segoe UI"; font-size: 14px; text-align: center; color: #000; min-width: 1030px; background: #eee; } a {原创 2017-08-18 16:46:31 · 299 阅读 · 0 评论 -
css实现超出文本...显示
.ell { text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }原创 2017-08-22 10:39:13 · 391 阅读 · 0 评论 -
清除浮动造成的父元素高度坍塌的影响
父元素float:left<div style="float:left"> <img style="float:left"> </div>父元素position:absolute<div style="position:absolute"> <img style="float:left"> </div>父元素display:inline-block<div style="disp原创 2017-08-24 11:06:05 · 365 阅读 · 0 评论 -
设置checkbox与文字对齐
checkbox { vertival-align:text-bottom; margin-bottom:0; }原创 2018-09-19 10:26:18 · 398 阅读 · 0 评论 -
设置div高度为浏览器可视窗口的高度
div { position:absolute; top:0; left:0; height:100%; }原创 2018-09-19 10:27:35 · 7668 阅读 · 0 评论 -
css奇淫巧计
纯css实现半圆 width:100px; height:200px; background-color:red; border-radius:100px; border-top-left-radius:100px; border-bottom-left-radius:100px; 纯css实现文字渐变色动画效果 <div class="list"> <span...原创 2019-04-28 16:21:24 · 12021 阅读 · 0 评论 -
滚动条的浏览器兼容问题
谷歌浏览器 谷歌可设置大部分滚动条样式,但是无法设置内嵌式滚动条,如下图: /*滚动条整体部分,其中的属性有width,height,background,border等(就和一个块级元素一样)(位置1) width指竖向滚动条宽度 height指横向滚动条高度 */ ::-webkit-scrollbar{ width:10px; height:10px; } /*滚动条两端的按钮,可以...转载 2019-05-28 21:55:56 · 1965 阅读 · 0 评论