怎样获取控件的CSS样式并修改

html-css010

怎样获取控件的CSS样式并修改,第1张

一般在页面审查元素的时候,能看到各种样式是那个class加上的。或者你自己写个样式,加很高的权重也行。比如 clor:red !important; 在样式后加个!important

写个.radio{

float:left

margin:0px

padding:0px…}//先写好打算控制的样式

在下面用到的时候就

<input

type="radio"

class="radio"

/>