随笔分类 - CSS技能
css技能笔记
摘要:<div class="img" style="background: url("uploads/image/201905/5cce9c85e8b25.jpg") center center / cover; height: 257px;"></div> .ToggleConta
阅读全文
摘要:1, <div id="test"></div> #test { display: inline-block; width: 100px; height: 100px; background: linear-gradient(135deg, transparent 10px, #58a 0) top
阅读全文
摘要:1, <div class="feature"> <div class="like-wrap"> </div> <div class="empty-wrap"></div> <div class="share-wrap"> </div> </div> 2, .feature { width: 4vh
阅读全文
摘要:1, <style> .cont { width: 200px; height: 200px; border: 1px solid #000000; overflow-x: hidden; } .cont::-webkit-scrollbar { display: none; } </style>
阅读全文
摘要:1,首先在CSS 中定义透明渐变属性。 2,再将透明度opacity属性值置为0,会自动渐变隐藏,最后去掉DIV 元素。
阅读全文
摘要:1,html代码 <!-- 导航目录 --> <nav> <div class="nav-links"> <a href="./index.html" class="link"><span></span>首 页</a> <a href="javascript:void(0);"
阅读全文
摘要:1, .btnDivL .L1 { background-size: 100% 100%; background-position: center; background-repeat: no-repeat; background-image: url('../icon/L1.png'); /* 简
阅读全文
摘要:1, /*手机*/ @media screen and (max-width:600px) { /* 设置字体大小 ,其余元素按字体自动调整大小*/ body { font-family: Helvetica Neue, Helvetica, Arial, sans-serif; font-size
阅读全文
摘要:1, style="width:100%;height:calc(100%); position:absolute; top:0;"
阅读全文
摘要:1, .card-slogen { font-size: .24rem; color: #777; display: block; margin-left: .2rem; /* 隐藏超长字体 */ overflow: hidden; white-space: nowrap; text-overflo
阅读全文
摘要:1, .container { box-sizing: border-box; max-width: 1024px; padding: 20px; text-align: center; }
阅读全文
摘要:1, <!DOCTYPE html> <html> <head> <style> div.container { width:30em; border:1em solid; } div.box { box-sizing:border-box; -moz-box-sizing:border-box;
阅读全文
摘要:1, .project-header { height: 64px; font-size: 20px; text-align: center; /* position: relative; */ background:transparent; position:absolute; z-index:
阅读全文
摘要:1,禁止拖动 2,禁止选中文字图片等 body { height: 100%; overflow: hidden; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; color: #666; background-color: #ff
阅读全文
摘要:1, /* 通用样式 */ *,::after,::before { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; -webkit-box-sizing: border-box; -moz-box-sizing: b
阅读全文
摘要:1, * { /* IOS平台下点击按钮,会出现一个半透明的灰色背景,alpha值为0即为禁用 */ -webkit-tap-highlight-color: rgba(255, 255, 255, 0); -webkit-touch-callout: none; -webkit-user-sele
阅读全文
摘要:1, /* background-color: #f10a91; */ background-size: contain; background-position: center; background-repeat: no-repeat; background-image: url("public
阅读全文
摘要:1, .btn{ color: #fff; background-color: #337ab7; border-color: #2e6da4; display: inline-block; padding: 6px 12px; margin-bottom: 0; font-size: 14px; f
阅读全文
摘要:1, background-image: linear-gradient(45deg, red, yellow, blue);
阅读全文