2017-06-14 2 views
1

Ich baue eine Angular & ionische App, auf Chrome Debugging alles sieht gut aus, aber wenn ich es bereitstellen, sieht das Seiten-Styling gut auf der ersten Instanz, aber wenn ich bin Zurückgehen und auf die Seite zurückkehren, scheint die CSS versaut zu werden.CSS umordnet das zweite Mal auf Angular Ionic App

erste Instanz: first instance

second (notice the icons in the middle):

mein html: `

<div class="infoButtons"> 
        <div> 
         <i class="icon ion-icon-location positive" ></i> 
         <p>{{event.location}} <br> {{event.city}}</p> 
        </div> 

        <div id="priceBtn" ng-show="{{event.price}}" style="padding-right:10%;"> 
         <i class="icon ion-icon-shekel positive" id="nisIcon"></i> 
         <p><span>שׁ״ח&nbsp</span>{{event.price}}</p> 
        </div> 

        <div> 
         <i class="ion-icon-17 positive" style="margin-bottom:3%"></i> 
         <p>{{event.date}} <br> {{event.hour}}</p>    
        </div>   
       </div> 

      </div> 

mein SCSS (alle stationär):`

.infoButtons{ 
    display: flex !important; 
    justify-content: space-around !important; 
    padding-right:10% !important; 

    div{ 

     margin-bottom: 10%; 
     margin-top: 5%; 
     margin-right:10% !important; 
     margin-left:10% !important; 
     display: flex !important; 
     flex-direction: column !important; 
     align-items: center !important; 
     height:70px !important; 

     i{ 
      font-size: 30px; 
      font-weight: 100; 
      margin-bottom: 3%; 

     } 

     p{ 
      text-align: center!important; 
      white-space: nowrap !important; 
      font-size:13px;      
     } 

    } 

    #priceBtn{ 
     p{ 
      display: flex; 
     } 
    } 

} 

Hilfe bitte !! Dank

Antwort

0

Versuchen Sie es:

.infoButtons{ 
    display: flex !important; 
    justify-content: space-around !important; 
} 
.infoButtons div{ 
    flex-grow: 0.33; 
    flex-basis: 33%; 

    height: 70px !important; 
    text-align: center; 
    height:70px !important; 

    i{ 
     font-size: 30px; 
     font-weight: 100; 
     margin-bottom: 3%; 

    } 

    p{ 
     text-align: center!important; 
     white-space: nowrap !important; 
     font-size:13px;      
    } 
Verwandte Themen