从引导程序复制的代码中,我在CSS样式表中的netbeans中收到一些警告
.carousel-inner>.item {
-webkit-transition: -webkit-transform .6s ease-in-out;
-o-transition: -o-transform .6s ease-in-out;
transition: transform .6s ease-in-out;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-perspective: 1000px;
perspective: 1000px;
}
.btn {
display: inline-block;
padding: 6px 12px;
margin-bottom: 0;
font-size: 14px;
font-weight: 400;
line-height: 1.42857143;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px
}
触摸操作和用户选择的属性(在css前缀之后的属性)显示警告,并在属性下方显示“未知属性触摸操作”警告
并且,对于Perspective属性,其值下划线为“ 1000px”(也位于带有te css前缀的值之后)。
我想知道如何以正确的方式重写该属性,以便它不会弹出警告。 我知道我可以在netbeans上制定规则,因此它不会触发警告,但我不希望这样。我很确定必须存在IDE认为有效的语法。
我已经能够解决类似的问题
text-align: start;// shows warning
text-align: start right;// NO WARNING HERE