我开发了一种类型形式,其中游标:指针不起作用。
.confirm {
position: absolute;
padding: 10px;
background-color: rgba(185, 208, 224, 0.26);
border-radius: 3px;
border-color: #828c94;
border-width: 1px;
border-style: solid;
cursor:pointer;
}
.confirm .child1 {
float: left;
margin-left: 5px;
padding: 10px 15px;
background-color: #2C3F54;
color: white;
cursor:pointer;
}
.confirm .child2 {
float: right;
margin-left: 10px ;
padding: 15px;
cursor:poniter;
}
<div class="confirm" > <span class="button-wrapper child1"> <div class="button nav enabled "><span style="vertical-align:top">Ok </span><i class="material-icons">done</i> </div> </span> <span class="text child2">press <strong>ENTER</strong></span> </div>
光标按钮仅适用于顶部,但在底部不起作用
答案 0 :(得分:0)
我看到了问题。在选择器.confirm .child2
中,指针拼写错误。它应该是cursor: pointer
。