컨테이너와 콘텐츠를 모바일 친화적으로 만드는 동시에 데스크톱에서 동시에 친숙하게 사용하는 데 문제가 있습니다.블레이드를 사용하는 트위터 부트 스트랩이 잘못 되었습니까?
.jumbotron에 대한 CSS를 너비 : 1350px로 편집 할 때.
내가 자동으로 .jumbotron 폭을 편집 할 때 :
은 브라우저의 작은 폭으로 보이는 방법, 난 브라우저 의 중심을 이동해야합니다 : 그것은 바탕 화면에 완벽하게 보여줍니다 그것은 모바일 완벽하게 보여줍니다
하지만 바탕 화면에서 :
블레이드 코드 :
@extends('default')
@section('content')
<div class="jumbotron">
<div class="container">
<br>
<h2><span class="glyphicon glyphicon-time"></span> Times målinger </h2>
<hr>
@if(Session::has('message'))
<p style="color: green;">{{ Session::get('message') }}</p>
@endif
<div class="row formgroup">
@if($errors->has())
<ul>
{{ $errors->first('badendeTime', '<li>:message</li>') }}
{{ $errors->first('temp', '<li>:message</li>') }}
</ul>
@endif
<div class="col-lg-6">
{{ Form::open(array('url' => 'bassengweb/insertHT', 'method' => 'POST')) }}
<table>
<tr>
<td>{{ Form::label('pool_id', 'Basseng:') }}</td>
<td>{{ Form::select('pool_id', $pools, Input::old('pool_id')) }}</td>
</tr>
<tr>
<td>{{ Form::label('Badende_per_Time', 'Badende per Time:') }}</td>
<td>{{ Form::text('Badende_per_Time', Input::old('Badende_per_Time')) }}</td>
</tr>
<tr>
<td>{{ Form::label('Temperatur', 'Temperatur:') }}</td>
<td>{{ Form::text('Temperatur', Input::old('Temperatur')) }}</td>
</tr>
<tr>
<td> </td>
<td>{{ Form::submit('Lagre', array('class' => 'btn btn-primary')) }}</td>
</tr>
</table>
{{ Form::close() }}
</div>
<div class="col-lg-6">
{{ Form::open(array('url' => 'bassengweb/insertHT', 'method' =>'POST')) }}
<table>
<tr>
<td>{{ Form::label('Luft_Temperatur', 'Luft Temperatur: ') }}</td>
<td>{{ Form::text('Luft_Temperatur', Input::old('Luft_Temperatur')) }}</td>
</tr>
<tr>
<td> </td>
<td>{{ Form::submit('Lagre', array('class' => 'btn btn-primary')) }}</td>
</tr>
</table>
{{ Form::close() }}
</div>
</div>
</div>
@stop
CSS는 :
이.jumbotron {
text-align: center;
display: inline-block;
margin-bottom: auto;
width: auto;
}
.formgroup {
margin: auto auto;
}
h2 {
text-align: center;
margin-top: auto;
}
.container {
min-height: 530px;
/* set border styling */
border-color: black;
border-style: solid;
border-width: 1px;
/* set border roundness */
border-radius: 15px;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
margin: 0 auto auto;
width: auto;
display: inline-block;
/* height: 400px; */
background-color: white;
}
왜 양식 요소를 표에 배치하고 있습니까? -이 방법으로 문제가 해결되지 않을 수도 있습니다 : http://bootsnipp.com/forms?version=3 표를 사용하여 양식 서식을 지정하는 것보다 그와 같은 것을 사용하는 것이 좋습니다. –
양식을 레이아웃하기 위해 테이블을 사용해서는 안됩니다. 부트 스트랩 문서는 어떻게하는지 보여줍니다 : http://getbootstrap.com/css/#forms –
이 문맥의 표는 내가 향수를 불러 일으키는 두려움을 떨치게합니다. –