scss切页面

html
<div class="data-list">
<div class="data-list-item">
<div class="data-list-item-image">
<img src="/Wx/YearCard/image/head.png">
</div>
<div class="data-list-item-content">
<div class="data-list-item-content-title">宿迁文旅集团旅游单人年卡</div>
<div class="data-list-item-content-sub">畅游宿迁-乐趣无穷</div>
<div class="data-list-item-content-date">有效期至:2020-04-02</div>
<div class="data-list-item-content-btn">查看年卡信息</div>
</div>
</div>
</div>
scss
.data-list {
width: px2rem(750px);
height: auto;
.data-list-item {
width: px2rem(710px);
height: auto;
margin: 0 auto;
margin-bottom: px2rem(80px);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.data-list-item-image {
img {
width: px2rem(230px);
border-radius: px2rem(20px);
}
}
.data-list-item-content {
position:relative;
width: px2rem(710-230-47px);
.data-list-item-content-title {
line-height: px2rem(75px);
font-size: px2rem(34px);
font-weight: bold;
color: #313131;
}
.data-list-item-content-sub {
font-size: px2rem(26px);
color: #444444;
margin-bottom: px2rem(20px);
}
.data-list-item-content-date {
font-size: px2rem(26px);
color: #ACACAC;
}
.data-list-item-content-btn {
position: absolute;
bottom: 0;
right: 0;
width: px2rem(210px);
height: px2rem(56px);
border: px2rem(2px) solid rgba(94, 202, 190, 1);
border-radius: px2rem(28px);
color:#5ECABE;
font-size:px2rem(28px);
text-align: center;
line-height: px2rem(56px);
}
}
}
}
.data-list-hide {
display: none;
}
scss切页面的更多相关文章
- 仅IE6中链接A的href为javascript协议时不能在当前页面跳转
切页面时有时用链接A来替代按钮,这样做有几个好处 鼠标放上时默认有手状效果(不用添加cursor:pointer) 可以添加低版本IE都支持的伪类 如果点击时页面要整体刷新,即跳转,这时IE6则不尽人 ...
- 使用rem设计移动端自适应页面三(转载)
使用rem 然后根据媒体查询实现自适应.跟使用JS来自适应也是同个道理,不过是js更精确一点.使用媒体查询: html { font-size: 62.5% } @media only screen ...
- 使用vue搭建应用三引入scss
Css.Sass.Scss的含义及区别 Css(Cascading Style Sheets) 层叠样式表 Sass(Syntactically Awesome StyleSheets) 是一款强化 ...
- vue页面顺序规范
// html模板<template> <div>因联vue页面规范</div></template><script> // 模块 ...
- [转] Web前端开发工程师常用技术网站整理
1.常用工具相关 有道云笔记 http://note.youdao.com/signIn/index.html 36镇-最好用的共享收藏夹 http://www.36zhen.com/ 浏览器同步测试 ...
- Web前端开发工程师常用技术网站整理
1.常用工具相关 有道云笔记 http://note.youdao.com/signIn/index.html 36镇-最好用的共享收藏夹 http://www.36zhen.com/ 浏览器同步测试 ...
- HTML5 开发技能图谱skill-map
# HTML5 开发技能图谱
(一) 近日和一同学联系,说了我想要做一个网站的打算.她很感兴趣.于是我们协商了下,便觉得一起合作.她写前端,我写后台.因为我对于前端样式设计并不怎么熟悉. (二) 我们决定先做一个 个人博客. 网上 ...
随机推荐
- 实用的 图片上传 html+css
html <form id="mainForm"> <div class="content"> <div class=" ...
- Java用Gson遍历json所有节点
<dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</ar ...
- GUID生成函数
/** * GUID生成函数 * @return string */function create_guid() { $charid = strtoupper(md5(uniqid(mt_rand() ...
- linux 安装sqlite3
python2个版本导致的问题. 网上找了好多方法都不行. 最后自己莫名其妙弄好了, 回想了一下大概是 安装sqlite3 重新安装python 最后 yum update 更新 就好了.
- 斯坦福机器学习ex1.1(python)
使用的工具:NumPy和Matplotlib NumPy是全书最基础的Python编程库.除了提供一些高级的数学运算机制以外,还具备非常高效的向量和矩阵运算功能.这些对于机器学习的计算任务是尤为重要的 ...
- oracle /*+ SYS_DL_CURSOR */ 这个hint
之前一直都没使用过 /*+ SYS_DL_CURSOR */这个提示,今天下午在排查一个性能问题的时候,发现出问题的session在执行一个带了SYS_DL_CURSOR提示的语句,类似于: 经查这个 ...
- Excel vba map/dictionary
今天在调整一生成java代码的工具时,要用到在不同语言间互转数据类型的逻辑,原来的代码中根据excel记录的行号来计算,再到另外一个collection中获取,个人想着这也太土鳖了,于是搜了下,在vb ...
- BootstrapTable(附源码)
Bootstrap结合BootstrapTable的使用,分为两种模试显示列表. 引用的css: <link href="@Url.Content("~/Css/bootst ...
- windows线程池之I/O完成端口(IOCP)
对于这个学习主要参考博客 http://blog.csdn.net/neicole/article/details/7549497
- Codeforces 808G Anthem of Berland - KMP - 动态规划
题目传送门 传送点I 传送点II 传送点III 题目大意 给定一个字符串$s$,和一个字符串$t$,$t$只包含小写字母,$s$包含小写字母和通配符'?'.询问$t$可能在$s$中出现最多多少次. 原 ...