在a标签上能够在线编辑

button,input{ 
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);    /*隐藏点击时出现的背景框*/
-webkit-user-modify: read-write-plaintext-only;
/*这句话可以设置a、input,button等标签具有可以在标签上直接添加文字的功能
 所以测试时我出现了很大的麻烦,就是出现a标签,及其里面的span标签都变成了在线可编辑的状态
 实际上这段代码的目的是第一句,使标签被点击时不出现背景框为白色,隐藏默认框*/
}

猜你喜欢

转载自blog.csdn.net/qq_28246519/article/details/79770818