简体   繁体   English

骨架网格用户代理样式表

[英]Skeleton Grid User Agent Style Sheet

I just started using Skeleton grid and it has been great to me except i just added a form submit and there are a bunch of strange styles added to my submit... When i look at it from inspect elements it shows all of this 我刚开始使用Skeleton网格,这对我来说很棒,除了我刚刚添加了表单提交,而且我的提交中添加了很多奇怪的样式...当我从inspect元素中查看时,它显示了所有这些

user agent stylesheetinput[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
padding: 1px 6px;
}
user agent stylesheetinput[type="button"], input[type="submit"], input[type="reset"], input[type="file"]::-webkit-file-upload-button, button {
align-items: flex-start;
text-align: center;
cursor: default;
color: buttontext;
padding: 2px 6px 3px;
border: 2px outset buttonface;
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
background-color: buttonface;
box-sizing: border-box;
}
user agent stylesheetinput[type="button"], input[type="submit"], input[type="reset"] {
-webkit-appearance: push-button;
white-space: pre;
}
user agent stylesheetinput, input[type="password"], input[type="search"], isindex {
-webkit-appearance: textfield;
padding: 1px;
background-color: white;
border: 2px inset;
border-image-source: initial;
border-image-slice: initial;
border-image-width: initial;
border-image-outset: initial;
border-image-repeat: initial;
-webkit-rtl-ordering: logical;
-webkit-user-select: text;
cursor: auto;
}
user agent stylesheetinput, textarea, keygen, select, button, isindex {
margin: 0em;
font: -webkit-small-control;
color: initial;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
text-shadow: none;
display: inline-block;
text-align: start;
}

How do i get ride of this? 我该如何驾车?

Assuming I understand correctly what you're asking... 假设我正确理解您的要求...

Those are user agent styles. 这些是用户代理样式。 Default styles applied by the browser. 浏览器应用的默认样式。 Default styles are applied to all browser elements. 默认样式应用于所有浏览器元素。 They're what make an h1 tag larger than an h2 tag, a body tag block, span inline, etc.. etc... 它们是使h1标签大于h2标签,body标签块,span inline等的原因。等等。

If you want to change those styles you have to override them. 如果要更改这些样式,则必须覆盖它们。 For example: 例如:

If you want to edit padding on the submit button, you can add this to your stylesheet: 如果要编辑“提交”按钮上的填充,可以将其添加到样式表中:

input[type="submit"] {
    padding: 5px 10px;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM