Css Getting Started Tutorial: css controls the input and bottn styles

Source: Internet
Author: User

Haha, let's take a look at the css Getting Started Tutorial: css controls the css style of text input boxes and buttons. Let's take a look at the effect chart first.

Now I see whether my text input box is a pale background and border. Now let's see how we implement it below.

<P align = "center"> <input name = "" type = "submit" class = "btn" value = "submit"> </p>
<P align = "center"> <input name = "reset" type = "reset" class = "btn" value = "reanswer"> </p>

This is implemented by class =. Let's see how css is implemented.

Input. inputt {
Border: 1px solid # FEE0A8;
Background-color: # FFF9EC;
}
Input. btn {
Background-image: url (images/btn.gif );
Display: block;
Height: 32px;
Width: 97px;
Color: # FEE0A8;
Border-top-width: 0px;
Border-right-width: 0px;
Border-bottom-width: 0px;
Border-left-width: 0px;
Border-top-style: none;
Border-right-style: none;
Border-bottom-style: none;
Border-left-style: none;
Background-color: #240002;
}

In fact, we only use css to control the border background, which is the same as setting div and table.

Declaration: please indicate www.111cn.net for original reprinted on this site

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.