【发布时间】:2014-10-07 19:07:06
【问题描述】:
我是 .net 和引导程序的新手。我正在尝试设计一个网页。但是当我看到较小尺寸的页面时,整个结构变得混乱。我在每个 col-md-6 中有一些行,我想在一行中看到自己的图像之后的文本。但在小尺寸文字下图像。 请查看网页中的源代码。 对不起,我的英语不好。 你可以在这个地址看到页面。 [][1]
[1]:
<div class="container">
<div class="row ">
<div class="col-md-6 " id="" style="background-color: #ff6a00; min-height: 650px;">
<div class="row" style="min-height: 35%">
<img class="img-responsive img-logo" src="img/about-us.jpg" style="transform: rotate(-10deg);" />
</div>
<div class="row" style="background-color: #ff6a00;min-height:550px;top:300px;">
<div class="direction" style="color: black;">
<h4 style="padding-right:50px;">درباره ما</h4>
<br />
<div class=" float pading-top text-justify text">
<p>
some text
</p>
</div>
</div>
</div>
</div>
<!----------------------------->
<div class="col-md-6 otherbak2 " id="boss" >
<div class="row height margin-top2 " >
<div class="col-md-6 height2 " >
<img class="img-responsive img-logo height2" src="img/png-ico/ali.JPG" />
</div>
<div class="col-md-6 height float" >
<p class="text-center" style="font-size: 17px; color: #d9534f">
some text
</p>
</div>
</div>
<div class="row height margin-top2 ">
<div class="col-md-6 height2" >
<img class="img-responsive img-logo height2" src="img/png-ico/mazdak.jpg" />
</div>
<div class="col-md-6 height float" >
<p class="text-center" style="font-size: 17px; color: #f0ad4e">
some text
</p>
</div>
</div>
<div class="row height margin-top2 ">
<div class="col-md-6 height2" >
<img class="img-responsive img-logo height2" src="img/png-ico/babak.jpg" />
</div>
<div class="col-md-6 height " >
<p class="text-center" style="font-size: 17px;color: #ea4619">
some text
</p>
</div>
</div>
<div class="row height margin-top2 " >
<div class="col-md-6 height2">
<img class="img-responsive img-logo height2 " src="img/png-ico/amin.jpg" />
</div>
<div class="col-md-6 height ">
<p class="text-center" style="font-size: 17px;color:#24a947;">
some text
</p>
</div>
</div>
</div>
</div>
</div>
<style type="text/css">
body {
background-image: url(../img/backgrnd.jpg);
}
.btn2 {
color: #fff;
background-color: #428bca;
border-color: #428bca;
}
.width {
width: 250px;
}
.height {
min-height: 190px;
}
.height2 {
min-height: 100%;
}
a:hover,
a:focus {
color: #FA6210;
text-decoration: underline;
}
.width {
width: 60%;
}
.danger {
color: #d9534f;
}
.warning {
color: #f0ad4e;
}
.success {
color: #5cb85c;
}
.info {
color: #5bc0de;
}
.primary {
color: #FA6210;
}
.btn2 {
color: #fff;
background-color: #428bca;
border-color: #428bca;
}
.style {
color: white;
}
.pading-top {
padding-top: 30px;
}
.margin-top {
margin-top: 10px;
}
.menu2 {
border-bottom: 5px solid #096DB9;
border-radius: 10px 10px 10px 10px;
}
.menu3 {
border-bottom: 8px solid #096DB9;
border-radius: 15px 15px 15px 15px;
}
.direction {
direction: rtl;
float: right;
}
.direction2 {
direction: ltr;
float: left;
}
.float {
float: right;
}
.padding {
margin: 50px 5% 100px 5%;
}
.img-size {
height: 128px;
width: 128px;
}
.fixed2-menu {
z-index: 1;
direction: rtl;
float: right;
width: 100%;
}
.margin-top {
margin-top: 30px;
}
.margin-top2 {
margin: 5px 0 0 0;
}
.text {
padding: 0 20px 0 20px;
line-height: 25px;
font-size: 14px;
}
.opacity {
opacity: 1.0;
}
</style>
【问题讨论】:
-
如果你使用 bootstrap 设计意味着你不需要编写额外的样式,bootstrap 已经是一个完整的 css 了。你可以实现你想要的任何设计。供参考使用此链接:getbootstrap.com
-
首先删除您的附加样式并使用引导样式进行设计。例如使用这个链接:wrapbootstrap.com
标签: jquery html css asp.net twitter-bootstrap