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 开发技能图谱
(一) 近日和一同学联系,说了我想要做一个网站的打算.她很感兴趣.于是我们协商了下,便觉得一起合作.她写前端,我写后台.因为我对于前端样式设计并不怎么熟悉. (二) 我们决定先做一个 个人博客. 网上 ...
随机推荐
- Java 代码性能调优“三十六”策
代码优化,一个很重要的课题.可能有些人觉得没用,一些细小的地方有什么好修改的,改与不改对于代码的运行效率有什么影响呢?这个问题我是这么考虑的,就像大海里面的鲸鱼一样,它吃一条小虾米有用吗?没用,但是, ...
- ssh-keygen 不是内部或外部命令
如何处理呢? 1.找到Git/usr/bin目录下的ssh-keygen.exe(如果找不到,可以在计算机全局搜索) 2.属性-->高级系统设置-->环境变量-->系统变量,找到Pa ...
- 【题解】Luogu P4363 [九省联考2018]一双木棋chess
原题传送门 这道题珂以轮廓线dp解决 经过推导,我们珂以发现下一行的棋子比上一行的棋子少(或等于),而且每一行中的棋子都是从左向右依次排列(从头开始,中间没有空隙) 所以每下完一步棋,棋盘的一部分是有 ...
- es数据迁移脚本(python)
#!/usr/bin/python # -*- coding: UTF-8 -*- # 文件名:indiceCreate.py import sys import base64 import time ...
- mint-ui之Swipe使用
<template> <div> <div class="swipe-wrapper"> <mt-swipe :auto="10 ...
- TensorFlow 生成 .ckpt 和 .pb
原文:https://www.cnblogs.com/nowornever-L/p/6991295.html 1. TensorFlow 生成的 .ckpt 和 .pb 都有什么用? The . ...
- Codeforces Round #439 (Div. 2) Problem A (Codeforces 869A) - 暴力
Rock... Paper! After Karen have found the deterministic winning (losing?) strategy for rock-paper-sc ...
- 定制FileField中的上传文件名称
FileField中的upload_to属性可以设定上传文件的存储目录和名称,它可以是个字符串,也可以是个callable,比如一个方法. 当upload_to的值设为一个方法时,就可以对上传文件的名 ...
- Mac10.13 telnet不能用的解决方法
telnet在Mac 10.13上不能用了 Restore的方法 brew install inetutils To be clear, brew install inetutils will ins ...
- Django 创建项目笔记
基本命令 mkdir mysite # 创建项目目录,常取名mysite cd mysite virtualenv env # env\Scripts\activate.bat # Win pip i ...