Css 로 제출됩니다 버튼를 스타일입니까 입력 방법?

39 m com/go/learn_fl_cs4_learningas2_kr i&, CSS. Css 로 제출됩니다 버튼를 스타일입니까 입력 방법?

39 m 이 같은 일이 있지만, 난 아무 생각이 어떻게 i& 생성 할 수 없을 것이다.

<form action="#" method="post">
    Name <input type="text" placeholder="First name"/>
    <input type="text" placeholder="Last name"/>
    Email <input type="text"/>
    Message <input type="textarea"/>
    <input type="submit" value="Send"/>
</form>

enter 이미지 여기에 설명을!

질문에 대한 의견 (4)

[http://jsfiddle.net/vfUvZ/] [1]

39 의 시작점을 here&

  • CSS:*
input[type=text] {
    padding:5px; 
    border:2px solid #ccc; 
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

input[type=text]:focus {
    border-color:#333;
}

input[type=submit] {
    padding:5px 15px; 
    background:#ccc; 
    border:0 none;
    cursor:pointer;
    -webkit-border-radius: 5px;
    border-radius: 5px; 
}
해설 (0)

단순히 다른 모든 것과 같은 사용자 스타일 제출됩니다 버튼를 스타일입니까 html 요소. 다른 유형의 입력입니다 선택기를 CSS 속성을 사용하여 요소를 대상이 될 수 있습니다

예를 들어 작성할 수 있습니다

input[type=text] {
   /*your styles here.....*/
}
input[type=submit] {
   /*your styles here.....*/
}
textarea{
   /*your styles here.....*/
}
  • 다른 선택기와의 합칩니다 *
input[type=text]:hover {
   /*your styles here.....*/
}
input[type=submit] > p {
   /*your styles here.....*/
}
....

이것은 apc® [예] [1]

해설 (0)

HTML

<input type="submit" name="submit" value="Send" id="submit" />

CSS

#submit {
 color: #fff;
 font-size: 0;
 width: 135px;
 height: 60px;
 border: none;
 margin: 0;
 padding: 0;
 background: #0c0 url(image) 0 0 no-repeat; 
}
해설 (0)

꼭 이래야겠어요 사용하는 대신 제안하십시오.

&gt. # 39, & # 39 submit& &lt, 입력 유형 = ',' &gt.

사용

&gt. # 39, & # 39 ',' &gt submit& 버튼를 유형 = <;

특별히 염두에 두고 CSS 스타일 부착된 버튼를 도입되었다. 이를 통해 해당 CSS3, 스타일입니까 그래디언트 그래디언트 배경 이미지를 추가할 수 있습니다.

Html5 의 구조 양식 여기 read more

&gt. 'http://www.w3.org/TR/2011/WD-html5-20110525/forms.html'

건배! 자파프

해설 (2)

양식 요소점 ᅴ 다소 있지만브라우저에 제어됩니다, 운영 체제, 그래서 그 사소한 것은 매우 안정적으로 스타일을 엿볼 수 있는 방식으로 이 같은 모든 일반 브라우저 / OS 조합에서.

대신 사용할 수 있는 특정, 분명 뭔가 스케쳐내 추천합니까 라리브러리 스티라블레 있습니다 양식 요소. [유니퍼m.j스] (http://opensource.audith.org/uniform/) 는 그러한 하나 라이브러리란.

해설 (2)

39; d 제안하세요 클래스 이름 확증하노라 i& 신뢰성을 위해, 또는 'id 를 요소를 스타일 (클래스 a' 가 있을 수 없어 '이상적인 텍스트 투입물 대한 여러) 와' id '을 onsubmit 버튼를 (그러나' 클래스 '노력할 뿐만 아니라):


    Text 1
    <input type="text" class="textInput" id="text1" />
    Text 2
    <input type="text" class="textInput" id="text2" />
    <input id="submitBtn" type="submit" />

Css 와 함께:

.textInput {
    /* styles the text input elements with this class */
}

#submitBtn {
    /* styles the submit button */
}

최신 브라우저 특성 (같은 HTML) 에 의해 선택할 수 있습니다.

.input {
    /* styles all input elements */
}

.input[type="text"] {
     /* styles all inputs with type 'text' */
}

.input[type="submit"] {
     /* styles all inputs with type 'submit' */
}

그냥 형제 연결자 사용할 수도 있습니다 (이후 텍스트 투입물 스타일 것 같아 항상 따라 '레이블' 요소, 그리고 한 제출됩니다 inet6.0 extarea (그러나 이는 대답하도다 취약한):

label + input,
label + textarea {
    /* styles input, and textarea, elements that follow a label */
}

input + input,
textarea + input {
    /* would style the submit-button in the above HTML */
}
해설 (0)

I did it this way, 이를 통해 그 대답을 토대로 여기에 주어진 좋겠다

.likeLink {
    background: none !important;
    color: #3387c4;
    border: none;
    padding: 0 !important;
    font: inherit;
    cursor: pointer;
}
    .likeLink:hover {
        background: none !important;
        color: #25618c;
        border: none;
        padding: 0 !important;
        font: inherit;
        cursor: pointer;
        text-decoration: underline;
    }
해설 (0)

다음과 같은 코드를 사용할 때 문자 입력 스타일을 제출됩니다.

   input[type=submit] {
    background-color: pink; //Example stlying
    }
해설 (0)

사실 이 너무 작동됨 멋지구리해요.

input[type=submit]{
                 width: 15px;
                 position: absolute;
                 right: 20px;
                 bottom: 20px;
                 background: #09c;
                 color: #fff;
                 font-family: tahoma,geneva,algerian;
                 height: 30px;
                 -webkit-border-radius: 15px;
                 -moz-border-radius: 15px;
                 border-radius: 15px;
                 border: 1px solid #999;
             }
해설 (1)

HTML




<meta charset="utf-8" />
CSS3 Button



<div id="container">
<a href="#" class="btn">Push</a>
</div>

CSS 스타일

a.btn {
display: block; width: 250px; height: 60px; padding: 40px 0 0 0; margin: 0 auto;

background: #398525; /* old browsers */
background: -moz-linear-gradient(top, #8DD297 0%, #398525 100%); /* firefox */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#8DD297), color-stop(100%,#398525)); /* webkit */

box-shadow: inset 0px 0px 6px #fff;
-webkit-box-shadow: inset 0px 0px 6px #fff;
border: 1px solid #5ea617;
border-radius: 10px;
}
해설 (1)

아주 간단합니다.





.buttonstyle 
{ 
background: black; 
background-position: 0px -401px; 
border: solid 1px #000000; 
color: #ffffff;
height: 21px;
margin-top: -1px;
padding-bottom: 2px;
}
.buttonstyle:hover {background: white;background-position: 0px -501px;color: #000000; }




<input class="buttonstyle" type="submit" name="submit" Value="Add Items"/>


나는 이 테스트되었습니다 일하고 있다.

해설 (0)