1、使用
在HTML里:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"/>
<title>Title</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic">
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<link rel="stylesheet" href="museui/muse-ui.css">
<link rel="stylesheet" href="museui/theme-light.css">
<style type="text/css">
body
{
background: #e8e8e8 ;
}
//成功
.divA{
background-color:white;
border-radius: 15px; /*圆角*/
width: 100%;
padding-left:10px; /*div内部内容边距*/
margin-bottom: 10px;
-webkit-box-shadow: #9e9e9e 0px 0px 10px; //DIV层阴影效果
-moz-box-shadow: #9e9e9e 0px 0px 10px; //DIV层阴影效果
box-shadow: #9e9e9e 0px 0px 10px; //DIV层阴影效果
}
//divB有问题,代码仅参考
.divB{
background-color:white;
border-radius: 15px; /*圆角*/
// text-align: center; /*让div内部文字居中*/
// height:120px;
width: 100%;
// border:1px;
//text-align:left; /*让div内部文字居中*/
margin:10px; /*div层之间的间距*/
padding-left:12px; /*div内部内容边距*/
padding-right:12px;
//padding-bottom:16px;
line-height: 1.5;
top: 0;
left: 0;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
2、引用.divA
<template>
<div class="divA">
</br>
员工工号:1014
员工姓名:TT
出勤状态:出勤 </br>
<mu-radio label="出勤" name="group" nativeValue="simple1" class="demo-radio"></mu-radio>
<mu-radio label="请假" name="group" nativeValue="simple2" class="demo-radio"></mu-radio>
<br/>
</div>
</template>
<template>
<div class="divA">
</br>
员工工号:1014
员工姓名:TT
出勤状态:出勤 </br>
<mu-checkbox nativeValue="checkbox1" label="出勤" class="demo-checkbox"></mu-checkbox>
<mu-checkbox nativeValue="checkbox2" label="请假" class="demo-checkbox"></mu-checkbox>
<br/>
</div>
</template>