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 开发技能图谱
(一) 近日和一同学联系,说了我想要做一个网站的打算.她很感兴趣.于是我们协商了下,便觉得一起合作.她写前端,我写后台.因为我对于前端样式设计并不怎么熟悉. (二) 我们决定先做一个 个人博客. 网上 ...
随机推荐
- SQL Server 2008 R2 常用系统函数学习
/******************************************* * 聚合函数 *******************************************/ SEL ...
- JS笔记—03(DOM编程)
1. 动态体现:HTML代码加载到浏览器,代码运行后改变文档(DOM树)增删改查节点.例如:ajax(不是新技术,是几个技术的合体js+http后台操作)就是这样的原理 2.js对象(浏览器对象.脚本 ...
- 计算概论(A)/基础编程练习(数据成分)/1:短信计费
#include<stdio.h> int main() { // 输入当月发送短信的总次数n和每次短信的字数words int n,words; scanf("%d" ...
- k8s环境搭建
mirantis 有个培训, 提供了安装脚本 git clone https://bitbucket.org/mirantis-training/kd100-scripts 网络采用的是calico ...
- 20155201 网络攻防技术 实验五 MSF基础应用
20155201 网络攻防技术 实验五 MSF基础应用 一.实践内容 一个主动攻击实践,如ms08_067 一个针对浏览器的攻击,如ms11_050 一个针对客户端的攻击,如Adobe 成功应用任何一 ...
- CEF 添加F5刷新快捷键
Keyboardcodes:https://www.androidos.net.cn/android/4.3_r1/xref/external/webkit/Source/WebCore/platfo ...
- 【Python56--爬取妹子图】
爬取网站的思路 第一步:首先分析爬取网站的连接地址特性,发现翻页图片的时候连接:http://www.mmjpg.com/mm/1570 ,http://www.mmjpg.com/mm/1569, ...
- springmvc配置文件<context:component-scan>
在spring.xml配置了这个标签后,spring可以自动去扫描base-pack下面或者子包下面的java文件,如果扫描到有@Component @Controller@Service等这些注解的 ...
- topcoder srm 435 div1
problem1 link 遍历未被删除的叶子结点即可. problem2 link 首先,将所有的蛋白质原子编号,设为$[0,m-1]$,每个原子可能对应多个长度为3的$ACGT$.设$n$为DNA ...
- dart基础计数器
import 'package:flutter/material.dart'; void main() => runApp(new MyApp()); class MyApp extends S ...