Lightview3 - 固定图像位置(图像低)

时间:2013-03-28 09:27:13

标签: css height photo image-gallery

我正在使用“lightview”在我的网站上显示图片,问题是图片要低得多,所以我可以看到不到50%的照片

当我将高度设置为css中的对象时,图像较低

这是我的CSS代码:

/****HTML Tags****/

body {
    margin: 0;
    padding: 0;
    text-align: right;
    direction: rtl;
    font-family: Arial, Arial Hebrew, Helvetica, sans-serif;
}

::selection {
    background: #BFBFBF;
}


header {
    background-image: url('../g.png');
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
}

h1 {
    font-family: Tahoma, Geneva, sans-serif;
    text-decoration: underline;
    color: #3852A4;
    padding-bottom: 20px;
    font-size: x-large;
}


/****General****/

.content {
    width: 900px;
    position: relative;
    padding: 0px;
    margin: 0 auto;
}

.main {
    padding-right: 15px;
    /* IE9 SVG, needs conditional override of 'filter' to 'none' */
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2U1ZTVlNSIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNmZmZmZmYiIHN0b3Atb3BhY2l0eT0iMCIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
    background: -moz-linear-gradient(top, rgba(229,229,229,1) 0%, rgba(255,255,255,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(229,229,229,1)), color-stop(100%,rgba(255,255,255,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* IE10+ */
    background: linear-gradient(to bottom, rgba(229,229,229,1) 0%,rgba(255,255,255,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#00ffffff',GradientType=0 ); /* IE6-8 */
    background-size: Auto 200px;
    background-repeat: repeat-x;
}

.details {
    padding-bottom: 15px;
}

    .details div {
        margin-top: 10px;
    }

#author {
    font-weight: bold;
    font-size: 16px;
}

#date {
    font-size: 14px;
    font-weight: bold;
}


/**Track Properties***/
#area {
    font-size: 14px;
}

.track {
    position: relative;
    padding: 0px;
    margin: 0 auto;
    width: 980px;
    width: 100%;
}

.trackdetails {
    position: relative;
    top: -51px;
    line-height: 25px;
    border-right: 2px solid #9e9e9e;
    padding-right: 25px;
    padding-bottom: 15px;
    font-size: 14px;
    margin: 0;
    left: 50px;
    width: 250px;
    float: left;
}

.title {
    color: #3852A4;
    font-size: large;
    text-decoration: underline;
    font-family: Tahoma, Geneva, sans-serif;
    margin-bottom: 20px;
}

.trackdetails #content {
    z-index: 1111;
}

#map-image {
    display: inline-block;
    padding-top:-50px;

}

#trackdescription {
    text-align: justify;
    max-width: 650px;
    width: 500px;
    float: right;
padding-bottom:100px;

}

我该如何解决这个问题?

Qish求助..谢谢! 以下是实例: http://lawb.co.il/test.html

1 个答案:

答案 0 :(得分:1)

尝试top: 10% !important;margin-top: -n; n =图片框高度/ 2:P n不是css属性:)