Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html Can';t将我的图像向左对齐_Html_Wordpress_Css - Fatal编程技术网

Html Can';t将我的图像向左对齐

Html Can';t将我的图像向左对齐,html,wordpress,css,Html,Wordpress,Css,在我的wordpress主题中,我无法将图像向左对齐。 我已经将WordPress生成的类添加到css中 /****************************************** * Align box ******************************************/ img.centered, .aligncenter, div.aligncenter { display: block; margin-left: auto; mar

在我的wordpress主题中,我无法将图像向左对齐。 我已经将WordPress生成的类添加到css中

/******************************************
* Align box
******************************************/

img.centered, .aligncenter, div.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

img.alignright {
    padding: 4px;
    margin: 0 0 2px 7px;
    display: inline;
}

img.alignleft {
    padding: 4px;
    margin: 0 7px 2px 0;
    display: inline;
}

.alignright {
    float: right;
}

.alignleft {
    float: left;
}

但不知何故,css的可读性不好
当我打开firebug时,图片中根本没有添加任何类。

我检查了你的整个style.css,发现你的评论不好:

/** Coin Slider HACK by aSeptik *  14/06/2011 16.37.38 *  fix navigation button z-index */
#slider {
    margin: 0 0 10px 0;
    padding: 0;
    width: 950px;
    height: 350px;
    /*background-image: url('http://www.iam-us.nl/wp-content/themes/iamus/images/De-mens-op-de-juiste-plek.png');
}*/
你注释掉了最后一个大括号!!}

因此,将其更改为:

    height: 350px;
    /*background-image: url('http://www.iam-us.nl/wp-content/themes/iamus/images/De-mens-op-de-juiste-plek.png');*/
}

就这样

你也需要发布一段HTML代码。试试看!在你的一些课程之后,看看它是否能识别-display:inline!重要的;我试过了,但还是没有结果。看起来它不知怎的读不懂我的。我的朋友!我很高兴你注意到了!谢谢。非常感谢!