2023-2-27 09:16:00
评论(0)
总结分享一下
1、自定义文本选择
- <font color="#000000" style="background-color: white;">::selection { background: #e2eae2; }
- </font>
复制代码
2、图片边框偏光
- <font color="#000000" style="background-color: white;">img.polaroid {
- background:#000;
- border:solid #fff;
- border-width:6px 6px 20px 6px;
- box-shadow:1px 1px 5px #333;
- -webkit-box-shadow:1px 1px 5px #333;
- -moz-box-shadow:1px 1px 5px #333;
- height:200px;
- width:200px;
- }</font>
复制代码 3、锚链接伪类
- <font color="#000000" style="background-color: white;">a:link { color: blue; }
- a:visited { color: purple; }
- a:hover { color: red; }
- a:active { color: yellow; }</font>
复制代码 4、全屏背景图
- <font color="#000000" style="background-color: white;">html {
- background: url('bg.jpg') no-repeat center center fixed;
- background-size: cover;
- }</font>
复制代码
5、内容垂直居中
- <font color="#000000" style="background-color: white;">.center {
- min-height: 6.5em;
- display: table-cell;
- vertical-align: middle;
- }</font>
复制代码
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|
|
|
|
特别声明:以上内容(图片及文字)均为互联网收集或者用户上传发布,本站仅提供信息存储服务!如有侵权或有涉及法律问题请联系我们(3513994353@qq.com)。