2013-06-12 1 views
0

내가 이해할 수없는 것이 있습니다. height:42px이 아닌 이유를 모르겠으며 height:395px이 아닙니까?form_for에 html 구문을 작성하십시오.

내가 불을 지르고와 코드를 보여 내가

<form id="new_user" class="wizard" style="height: 42px;" method="post" action="/users" accept-charset="UTF-8"> 

하지만 내보기에

내가 가진 것을 볼이

<div class="contentbox"> 
    <div id="wizard", style="left: 0px; position: relative;"> 
     <div class="container_12 clearfix leading"> 
      <div class="grid12"> 

    <%= form_for(resource, :as => resource_name, :url => registration_path(resource_name), :html=> { :class => "wizard",:style => 'height: 395px' }) do |f| %> 
    <%= devise_error_messages! %> 


         <!-- wizard --> 
         <form action="#" class="wizard" novalidate> 
          <nav> 
           <ul class="clearfix"> 
            <li class="active"><strong>1.</strong> Identification</li> 
            <li><strong>2.</strong> Information </li> 
            <li><strong>3.</strong> Finalisation</li> 
           </ul> 
          </nav> 

내가 height:42px하지 height:395px를 얻을 왜 당신이 어떤 생각을 가지고 있습니까?

답변

0

인라인 스타일링보다는 스타일 시트를 사용하는 것이 더 좋을 수도 있지만 단순히 누락의 문제라고 생각합니다. 이 경우

:html=> { :class => "wizard",:style => 'height: 395px;' } 

당신의 스타일 시트와 충돌 당신은 또한

:html=> { :class => "wizard",:style => 'height: 395px !important;' } 
를 둘 수 있었다