我在bootstrap中有两列列.如何在列之间创建空间. - 我的第一个col是8,但是我想把它变成7并且只有1列作为空格.
这是我的bootply:http: //www.bootply.com/mwGajBOEVe
这是我的HTML.
<div class="container">
<div class="row">
<div class="col-md-8">
<p>The apple tree (Malus domestica) is a deciduous tree in the rose family best known for its sweet, pomaceous fruit, the apple.</p>
</div>
<div class="col-md-4"">
The orange (specifically, the sweet orange) is the fruit of the citrus species Citrus × sinensis in the family Rutaceae.</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我应该创建空列来执行此操作吗?
我目前创建了一个并排的两列div,每个div为50%.我试图找出如何使左div 70%和右div 30%.
此外,除了2列div.如果我想创建一个25%的每个25%的div和每个20%的五列div.我该怎么做?
这是我的jsfiddle:http: //jsfiddle.net/huskydawgs/zhckr47h/3/
这是我的HTML:
.container-2col {
clear: left;
float: left;
width: 100%;
overflow: hidden;
background: none;
}
.container-1col {
float: left;
width: 100%;
position: relative;
right: 50%;
background: none;
}
.col1 {
float: left;
width: 46%;
position: relative;
left: 52%;
overflow: hidden;
}
.col2 {
float: left;
width: 46%;
position: relative;
left: 56%;
overflow: hidden;
}Run Code Online (Sandbox Code Playgroud) 我的HTML横幅中有一些文字"了解Google可以为您做些什么".我希望颜色为#ffffff(白色),但由于某种原因,它从上面的"p"标签中拾取颜色,因此它显示颜色rgb(102,102,102).我怎么能这样做.box-row p真的显示#ffffff.
看我的jsfiddle:http://jsfiddle.net/huskydawgs/tKn9f/39/
<div id="wrapper-landing">
<p>
Google has released an update to its Text-to-Speech app (TTS) that adds new, high-quality voices—that now take up a couple hundred MB worth of space instead of the old 5-6MB—as well as several new language packs including UK English, Portuguese, and US Spanish.</p>
<div class="box-row">
<div class="box-form-body">
<p>
Find out what Google can do for you!</p>
</div>
<div class="box-form-button">
<img alt="Learn More" height="100" src="http://www.robindelillo.fr/img/home/seeMoreButton.png" width="100" />
</div>
</div>
</div>
#wrapper-landing { …Run Code Online (Sandbox Code Playgroud) 我很近,但需要一些帮助.是否有任何方法可以在句子之后添加一个密切的引用,但在之前<cite>?
另外,我如何将整个blockquote页面居中?
<blockquote>
We came back to IBM because our previous provider was not as awesome.
<cite>Jon Jones, Vice President at Google</cite>
</blockquote>
Run Code Online (Sandbox Code Playgroud)
blockquote {
font-family: Georgia, serif;
font-size: 18px;
font-style: italic;
width: 500px;
margin: 0.25em 0;
padding: 0.25em 40px;
line-height: 1.45;
position: relative;
color: #616161;
}
blockquote:before {
display: block;
content: "\201C";
font-size: 80px;
position: absolute;
left: -20px;
top: -20px;
color: #7a7a7a;
}
blockquote cite {
color: #999999;
font-size: 14px;
display: block;
margin-top: 5px; …Run Code Online (Sandbox Code Playgroud) 我已经把一些HTML + CSS代码放在一起,有一个带有数字的灰色圆圈.如果我想创建另一种颜色的圆圈(比如橙色),那么最简单的方法就是这样做.我想保留原始代码,因为我仍在使用灰色圆圈.
这是我的jsfiddle:http: //jsfiddle.net/huskydawgs/5f4kuLk5/6/
这是我的HTML
<div class="circle">
<span class="number">1</span>
</div>
Run Code Online (Sandbox Code Playgroud)
这是我的CSS:
.circle {
border-radius: 100%;
height: 2em;
width: 2em;
text-align: center;
background: #616161;
margin: 0 auto;
}
.circle .number {
margin-top: 0.10em;
font-size: 1.5em;
font-weight: bold;
font-family: sans-serif;
line-height: 1.4em;
color: #ffffff;
}
Run Code Online (Sandbox Code Playgroud)