Html 我的侧边栏不是在页面的右侧,而是在我的左侧。我该如何解决这个问题?
我对html/css和bootstrap比较陌生。我试图建立一个博客网站,但我的侧边栏在我的页面底部,而不是我的右边。我该如何解决这个问题?我做错了什么 我的代码在下面和下面Html 我的侧边栏不是在页面的右侧,而是在我的左侧。我该如何解决这个问题?,html,css,twitter-bootstrap,Html,Css,Twitter Bootstrap,我对html/css和bootstrap比较陌生。我试图建立一个博客网站,但我的侧边栏在我的页面底部,而不是我的右边。我该如何解决这个问题?我做错了什么 我的代码在下面和下面 在您的小提琴中,您使用的是http://而不是https://作为引导资源。将https://与JSFIDLE一起使用显然是关键。未应用引导中的样式 如果有两个像您正在寻找的专栏,可能会是: 标题在这里 我们被称为很多东西。旅行者,默认情况下。但我们喜欢被称为游牧民族。探险家。流浪汉。冒险家。旅行者。 多读些。。 标
在您的小提琴中,您使用的是http://而不是https://作为引导资源。将https://与JSFIDLE一起使用显然是关键。未应用引导中的样式 如果有两个像您正在寻找的专栏,可能会是: 标题在这里 我们被称为很多东西。旅行者,默认情况下。但我们喜欢被称为游牧民族。探险家。流浪汉。冒险家。旅行者。 多读些。。 标题在这里 我们被称为很多东西。旅行者,默认情况下。但我们喜欢被称为游牧民族。探险家。流浪汉。冒险家。旅行者。 多读些。。 我希望我能帮助你 实践 新西兰 我们被称为很多东西。旅行者,默认情况下。但我们喜欢被称为游牧民族。探险家。流浪汉。冒险家。旅行者。 多读些。。 慕尼黑纵深 我们来自各行各业,从熙熙攘攘的灰色城市,沉睡的海滩小镇,白雪覆盖的大都市,依偎在郁郁葱葱的青山之间的小村庄,我们来自四面八方。 多读些。。 同侧肩胛骨,坐在一起,奉献给精英们。在侧边栏中,有一个简单的、准的、富饶的、有责任的
谢谢大家的帮助,帮助我学到更多
<!DOCTYPE html>
<title>Pratice</title>
<body>
<hr id="hrstyle" />
<!--End of Logp-->
<!--Start of Blog-->
<div class="container-fluid blog">
<div class="row">
<div class=" col-xs-12 col-sm-offset-1 col-sm-8">
<div>
<h3>New Zealand</h3>
<img class="img-responsive blogpics" src="Images/ocean2.jpg" / />
<p>
We have been called many things. Travelers, by default. But we like to be called nomads. Explorers. Vagabonds. Adventurers. Wayfarers.
<a class="readmore">Read More..</a>
</p>
</div>
<div>
<h3>Munich Depth</h3>
<img class="img-responsive blogpics" src="Images/munic2.jpg" />
<p>
And that’s just the gist of it.We come from all walks of life, from bustling gray colored cities, sleepy beach towns, snow-covered metropolises, small villages nestled in between lush green mountains, we come from everywhere.
<a class="readmore">Read More..</a>
</p>
</div>
<!---Sidebar-->
<div class="col-sm-3">
<p>
SideBarLorem ipsum dolor sit amet, consectetur adipisicing elit. Quibusdam, quasi, fugiat, asperiores harum voluptatum tenetur a possimus nesciunt quod SideBar
</div>
</div>
</div>
</div>
</body>
CSS
@import url(https://fonts.googleapis.com/css?family=Crimson+Text);
img {
max-width: 100%;
}
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background: #fff;
font-family: 'Crimson Text', serif;
line-height: 1.5;
overflow: scroll;
}
h1,
h2 {
font-family: 'Lato', sans-serif;
font-size: 2.5em;
}
/******Naviagtion*********/
nav {
width: 100%;
}
#hrstyle {
border-top-color: black;
color: black;
}
/***End Logo***/
/***Start of Blog***/
h3 {
text-transform: uppercase;
}
.readmore {
text-transform: uppercase;
display: block;
text-align: center;
margin-top: 2.5%;
border-width: 1.5px;
border-style: solid;
font-size: 1.1em;
}
.blog {
font-family: 'Crimson Text', serif;
font-size: 1.3em;
}
.blogpics {
width: 100%;
}
/****End of Blog****/
@media only screen and (min-width: 1224px) {
p {
width: 835px;
}
.blogpics {
width: 85%;
}
}