我在我的 html 模板中包含了 pure-css 并制作了一个简单的表单。我认为这个表单看起来和 PureCSS 网站上的一样。
尽管按钮的样式很好,但表单上的输入元素是“原始的”。没有圆角,没有亮点。检查了两个浏览器。
包括来自 Skin Builder 的主题并添加我的 pure-css-theme 类并没有帮助,也没有从纯站点中删除“蓝色主题”。
在纯 CSS 站点源代码中找不到其他任何内容..
为什么输入元素没有样式?
我必须在这里遗漏一些明显的东西..
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.3.0/pure-min.css">
</head>
<body>
<div>
{% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
<form class="pure-form pure-form-aligned" action="{% url 'checkin' %}" method="post">
{% csrf_token %}
<fieldset>
<legend> Your position </legend>
<input type="textfield" name="latitude" id="latitude" placeholder="Latitude" /><br>
<input type="textfield" name="longitude" id="longitude" placeholder="Longitude"/><br>
<input type="textfield" name="accuracy" id="accuracy" placeholder="Accuracy" readonly><br>
</fieldset>
<fieldset>
<button class="pure-button " type="submit">Send </button>
</fieldset>
</form>