Home > Web Front-end > CSS Tutorial > Detailed explanation of examples of using CSS to implement radio buttons and check boxes

Detailed explanation of examples of using CSS to implement radio buttons and check boxes

零下一度
Release: 2017-06-29 15:59:33
Original
2078 people have browsed it

This article mainly introduces HTML+CSS to realize radio button and checkboxbeautiful style. Friends who need it can refer to it

1.Background image

html

<p class="check-wrappers">
    <span class="c-checkbox checked">
        <input type="radio" autocomplete="off" name="type" style="display:none;" value="1" checked="checked">
    </span>
    <span></span>
</p>
Copy after login

css

.cart-checkbox.checked {
    background-position: -29px 0;
}
.c-checkbox {
    display: block;
    width: 25px;
    height: 25px;
    margin: 0 auto;
    background: url(/shop-cart.png) no-repeat 0 0;
    background-size: 60px 120px;
}
Copy after login

The above is the detailed content of Detailed explanation of examples of using CSS to implement radio buttons and check boxes. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template