我的要求是在点击树节点上的更多按钮时显示一个菜单.它应该靠近被点击的节点.您可以看到更多选项图标仅悬停在树节点上.以下是我现在使用的HTML和CSS代码.
.tree ul {
margin-left: 20px;
}
.tree li {
list-style-type: none;
margin:15px;
position: relative;
cursor: pointer;
}
.tree li .submenuBtn{
margin-left:8px;
display: none;
font-weight:bolder;
}
.tree li a:hover .submenuBtn{
display: inline-block;
}
.tree li img::clicked + #contextMenu{
display: inline-block;
}
.tree li::before {
content: "";
position: absolute;
top:-7px;
left:-20px;
border-left: 1px solid #ccc;
border-bottom:1px solid #ccc;
border-radius:0 0 0 0px;
width:20px;
height:15px;
}
.tree li::after {
position:absolute;
content:"";
top:8px;
left:-20px;
border-left: 1px solid #ccc;
border-top:1px solid #ccc;
border-radius:0px 0 …Run Code Online (Sandbox Code Playgroud)我是“ angular2”和“ angular js素材”的新手。我在我的项目中使用material-datepicker。
这是我的日期选择器代码
<material-datepicker placeholder="Select Date" [(date)]="currentDate" name="currentDate" required></material-datepicker>
Run Code Online (Sandbox Code Playgroud)
它将显示在浏览器中,如下所示。
我关心的是日期格式问题。如何设置从2017/04/27到2017年4月27日的日期格式。