Html 为什么图片是左对齐的
脚本的哪一部分使图片向左对齐。www.edmazeka.co.za。 这是css。或者我可以添加什么css使图片只与中心对齐 /*基本的*/Html 为什么图片是左对齐的,html,css,Html,Css,脚本的哪一部分使图片向左对齐。www.edmazeka.co.za。 这是css。或者我可以添加什么css使图片只与中心对齐 /*基本的*/ * { margin: 0; padding: 0; } html { background: #27282C url(images/bg2.jpg); } body { font-size: 12pt; font-family: Abel; width:100%; min-width: 1255
* {
margin: 0;
padding: 0;
}
html {
background: #27282C url(images/bg2.jpg);
}
body {
font-size: 12pt;
font-family: Abel;
width:100%;
min-width: 1255px;
color: #d0d1d4;
text-shadow: 1px 1px 0px rgba(0,0,0,0.7);
}
p {
line-height: 1.75em;
text-align: justify;
font-family: "Open Sans", sans-serif;
font-size: 0.9em;
margin: 0 0 2em 0;
}
strong {
color: #ffffff;
}
h1,h2,h3,h4 {
font-weight: normal;
}
a {
color: #6BA8E7;
}
/*杂项*/
br.clear {
clear: both;
}
img.align-left
{
float: left;
margin: 0 50px 30px 0;
}
/*布局*/
#bg0 {
position: relative;
width: 100%;
height: 30px;
background: url(images/bg0.jpg);
z-index: 2;
border-bottom: solid 1px #4B4C50;
}
#bg1 {
min-width: 1255px;
width: 100%;
height: 1090px;
background: url(images/bg1.jpg) top center no-repeat;
position: absolute;
top: 0;
z-index: 1;
}
#wrapper {
position: relative;
z-index: 3;
padding: 80px 0 100px 0;
width: 100%;
min-height: 100px;
margin: 0 auto;
overflow: hidden;
}
/*内容*/
#content {
margin-left: 235px;
width: 1020px;
overflow: hidden;
}
这个怎么样
img.align-left
{
float: left;
margin: 0 50px 30px 0;
}
你的规则:
.thumbnail img {
display: block;
width: 221px;
border: 0;
}
他正在做这件事。移除
显示:块代码>对于1个IMG来说,CSS太多了。对不起,请您将代码缩减到相关部分好吗?谢谢我们不会看所有这些…嗨,这很可能解决问题。。。但是,如果你能编辑你的答案,并提供一点关于它如何工作以及为什么工作的解释,那将是一件好事:)别忘了——堆栈溢出上有很多新手,他们可以从你的专业知识中学到一两件事——对你来说显而易见的事情对他们来说可能不是这样。