css项目样式
文章图片
image.png
css
#ywjInfoCenter .content-item {
height: 1.0rem;
border-bottom: 0.01rem solid #E6E6E6;
padding: 0 0.2rem;
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
}
2.
文章图片
image.png
#ywjInfoCenter .switchOn {
display: inline-block;
width: 1.0rem;
height: 0.5rem;
border-radius: 0.24rem;
background-color: #11C7D5;
position: relative;
vertical-align: top;
cursor: pointer;
}#ywjInfoCenter .switchOn em {
display: inline-block;
width: 0.44rem;
height: 0.44rem;
border-radius: 50%;
background: #FFFFFF;
position: absolute;
right: 0.03rem;
top: 0.03rem;
transition: all 0.5s linear;
box-shadow:0 0 0 0 rgba(103,103,103,0.63);
}#ywjInfoCenter .switchOn:after {
content: '';
font-size: 12px;
position: absolute;
left: 6px;
top: 4px;
color: #FFFFFF;
}#ywjInfoCenter .switchOff {
background-color: #CCCCCC;
display: inline-block;
width: 1.0rem;
height: 0.5rem;
border-radius: 0.24rem;
position: relative;
vertical-align: top;
cursor: pointer;
}#ywjInfoCenter .switchOff em {
left: 0.03rem;
top: 0.03rem;
display: inline-block;
width: 0.44rem;
height: 0.44rem;
border-radius: 50%;
background: #FFFFFF;
position: absolute;
transition: all 0.5s linear;
box-shadow:0 0 0 0 rgba(103,103,103,0.63);
}#ywjInfoCenter .switchOff:after {
content: '';
font-size: 12px;
position: absolute;
left: 6px;
top: 4px;
color: #FFFFFF;
}#ywjInfoCenter .switchOff:before {
content: '';
font-size: 12px;
position: absolute;
right: 5px;
top: 4px;
color: #FFFFFF;
}
html
- 模块4个角:应对网页在4K电视上失真的问题
文章图片
image.png
css
/*模块的4个角*/
#data-maintenance-show .triangle-topleft{
width: 0;
height: 0;
border-top: 15px solid #3B4FB2;
border-right: 15px solid transparent;
position: absolute;
margin: -2px 0 0 -2px;
}
#data-maintenance-show .triangle-topleft span{
display: block;
width: 0;
height: 0;
border-top: 12px solid #0A0831;
border-right: 12px solid transparent;
position: absolute;
left: 0;
top: -15px;
}
#data-maintenance-show .triangle-topright{
width: 0;
height: 0;
border-top: 15px solid #3B4FB2;
border-left: 15px solid transparent;
position: absolute;
margin: -2px -2px 0 0;
right: 0;
}
#data-maintenance-show .triangle-topright span{
display: block;
width: 0;
height: 0;
border-top: 12px solid #0A0831;
border-left: 12px solid transparent;
position: absolute;
right: 0;
top: -15px;
}
#data-maintenance-show .triangle-bottomright{
width: 0;
height: 0;
border-bottom: 15px solid #3B4FB2;
border-left: 15px solid transparent;
position: absolute;
margin: 0 -2px -2px 0;
right: 0;
bottom: 0;
}
#data-maintenance-show .triangle-bottomright span{
display: block;
width: 0;
height: 0;
border-bottom: 12px solid #0A0831;
border-left: 12px solid transparent;
position: absolute;
right: 0;
top: 3px;
}#data-maintenance-show .triangle-bottomleft{
width: 0;
height: 0;
border-bottom: 15px solid #3B4FB2;
border-right: 15px solid transparent;
position: absolute;
margin: 0 0 -2px -2px;
left: 0;
bottom: 0;
}
#data-maintenance-show .triangle-bottomleft span{
display: block;
width: 0;
height: 0;
border-bottom: 12px solid #0A0831;
border-right: 12px solid transparent;
position: absolute;
left: 0;
top: 3px;
}
/*模块的4个角*/
文章图片
image.png
html:
类型:
{{item.medicineType}}药品名称:
{{item.medicineName}}剂量单位:
{{item.medicineNumber}}服用方法:
{{item.medicineMethod}}
【css项目样式】css:
#goOutHospital-with-medicine .medical-font {
width: 1.5rem;
display:inline-block;
color: #999999;
}
#goOutHospital-with-medicine .goOutHospital-info {
padding: 0.1rem 0.3rem 0.3rem 0.3rem;
background: #fff;
font-size: 0.26rem;
border-bottom: 0.01rem solid #E6E6E6;
}#goOutHospital-with-medicine .medical-info {
padding: 0.1rem 0.3rem 0.3rem 0.3rem;
background: #fff;
font-size: 0.26rem;
border-bottom: 0.01rem solid #E6E6E6;
}
#goOutHospital-with-medicine .goOutHospital-info-item {
padding-top: 0.1rem;
}#goOutHospital-with-medicine .medical-info-item {
padding-top: 0.1rem;
display: flex;
}#goOutHospital-with-medicine .span-margin {
margin-left: 0.4rem;
display:inline-block;
flex: 1;
}
推荐阅读
- 标签、语法规范、内联框架、超链接、CSS的编写位置、CSS语法、开发工具、块和内联、常用选择器、后代元素选择器、伪类、伪元素。
- 17|17 关山松 第二课作业#公众号项目# D20
- RxJava|RxJava 在Android项目中的使用(一)
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- 靠QQ月入上万灰色暴利偏门的项目
- spring|spring boot项目启动websocket
- vuex|vuex 基础结构
- 3.css浮动
- 区块链开发平台(以太坊)
- 如何在手机上查看测试vue-cli构建的项目