html - 为什么 chrome 会覆盖 -webkit-appearance Css 属性?
问题描述
我有这个CSS:
a#exampleId {
-webkit-appearance: button;
/* -moz-appearance: button;*/
appearance: button;
}
这个HTML:
<html itemscope="" itemtype="http://schema.org/WebPage" lang="en" wtx-context="7AFAB2C8-5844-4EA0-8DF4-32D617786BAD">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="example.css">
</head>
<body>
<form>
<p>TEXT <a id="exampleId" href="google.com">click this </a></p>
<button> A </button>
</form>
<body>
</html>
在 chrome 中,我看到浏览器覆盖了 -webkit-appearance: 按钮;财产:
为什么 chrome 会覆盖 -webkit-appearance 属性以及如何防止它?
解决方案
推荐阅读
- c++ - 使用 auto 关键字初始化 char 数组
- php - 电子邮件模板问题 - WP-Invoice - Wordpress
- coldfusion - fileExists() vs CFHTTP 检查远程文件
- oracle - 使用受限选择 oracle 创建光标后插入数据
- python - 如何在 Python 中打开/转换 CSV,使字符串不是 unicode?
- sql - Cognos SQL WITH 子句生成语法错误
- android - 唯一识别安卓屏幕
- caching - CakePHP 3.6 缓存文件引擎的默认目录权限
- android - React Native:通知文本未显示在android中
- ruby-on-rails - 从延迟加载的模型中获取 activerecord 关系