我有一个简单的 div ,内联样式有max-width:100%;. doctype 是,<!DOCTYPE HTML>但 Chrome 控制台将其标记为无效属性值(Chrome 版本:67.0.3396.99)。您可以检查以下代码片段输出:
<div id="signupDiv" style="width:300px;max-width:l00%;margin:auto">
Inspect the problem here
</div>Run Code Online (Sandbox Code Playgroud)
你的代码
<div id="signupDiv" style="width:300px;max-width:l00%;margin:auto">
Inspect the problem here
</div>
Run Code Online (Sandbox Code Playgroud)
更新了代码
<div id="signupDiv" style="width:300px;max-width:100%;margin:auto">
Inspect the problem here
</div>
Run Code Online (Sandbox Code Playgroud)
100% 的拼写错误问题