css禁止长按
* {
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
input{-webkit-user-select:auto;}
* {
-webkit-user-select:none;
-moz-user-select:none;
-ms-user-select:none;
user-select:none;
}
input{-webkit-user-select:auto;}
max-height:350px; //不大于内容高度
overflow-y:auto;
background:rgba(0,0,0,0.87); /父透明,子可不透明
background:#000000;opacity: 0.87; /父透明,子跟随透明
使用CSS很容易创建透明的图像。
以下是使用CSS创建图片廊:
本文我们为大家介绍如何使用 HTML 与 CSS 来创建提示工具。
使用 CSS 创建一个鼠标移动上去后显示下拉菜单的效果。
CSS 伪元素是用来添加一些选择器的特殊效果。
CSS伪类是用来添加一些选择器的特殊效果。