小编Lib*_*cob的帖子

使用css点击更多按钮时带上下文菜单

我的要求是在点击树节点上的更多按钮时显示一个菜单.它应该靠近被点击的节点.您可以看到更多选项图标仅悬停在树节点上.以下是我现在使用的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)

html javascript css

6
推荐指数
1
解决办法
109
查看次数

在角度2中设置物料日期选择器的日期格式

我是“ 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日的日期格式。

node.js material-design angular

5
推荐指数
1
解决办法
4273
查看次数

标签 统计

angular ×1

css ×1

html ×1

javascript ×1

material-design ×1

node.js ×1