
css
小太阳sunshine
为成为一名优秀的前端工程师努力,加油!
展开
-
css多行文本溢出显示省略号...
overflow: hidden;text-overflow: ellipsis;white-space: nowrap;移动端页面:overflow : hidden;text-overflow: ellipsis;display: -webkit-box;//必须结合的属性 ,将对象作为弹性伸缩盒子模型显示 。-webkit-line-clamp: 2;//用来限制在一个块元素显示原创 2016-12-05 16:04:53 · 464 阅读 · 0 评论 -
css制作上下左右箭头
html部分:<div style="position: relative"> <span class="arrow arrow-down"></span> <span class="arrow arrow-up"></span> <span class="arrow arrow-left"></span> <span class="arrow arrow-r原创 2016-12-05 16:11:19 · 3301 阅读 · 0 评论 -
自定义文件上传按钮样式
index.html<div class="form-controls f-ct-por"> <input type="text" value="" class="f-text span3" name="textfield" id="textfield"> <input type="button" class="btn" value="浏览..."> <input type=原创 2017-02-07 11:01:57 · 552 阅读 · 0 评论 -
网页多种版心适应多屏幕技巧
在工作当中,我们难免会遇到这样的适应屏幕需求,宽版以1200px为基准,窄版以1024为基准,版心应该怎么设置呢?而合理运用媒体查询就能非常容易帮我们解决这个问题。/*版心*/@media screen and (max-width:1200px) and (min-width:1024px){ .w{ width:1024px; margin:0 auto原创 2017-01-21 11:23:44 · 9130 阅读 · 0 评论 -
页面主体高度不固定,如何让页面的footer始终在最底部
有时候我们的页面主体高度并不固定,而我们又不想让footer跟着主体高度变化而跑动,也许您会想到使用position:fixed;但是这并不能达到理想的要求,下面是我曾经在实际工作中用到的一种方法: html:<div class="wrapper> <div class="content">主体内容</div></div>css:html,body{ height:100%;原创 2017-02-23 19:28:11 · 11083 阅读 · 0 评论 -
css小技巧
去除ie浏览器input中的自带删除图标input::-ms-clear{display:none;}当input的type为number时,去除浏览器自带的上下三角箭头,并且只能输入数字<input type="number" autocomplete="off" min="1" :max="totalPage" v-model="jumpPage" class="jump-input" onke原创 2017-07-13 10:10:34 · 278 阅读 · 0 评论