×

Loading...
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!
Ad by
  • 技多不压身,工到自然成:安省技工证书特训班,点击咨询报名!

优化一下pbase的CSS。。。

本文发表在 rolia.net 枫下论坛pbase不错,它的几个预设css效果也挺好,能个性化一下相册。个人喜欢alexc和webdev。但是觉得他们都有不足,昨天晚上把这两个css取长补短,按照俺的喜好融合了一下,喜欢的朋友可以试试。

alexc的特点是字体说明鲜亮。webdev有点在于使用了css filter效果,能产生鼠标移动到缩略图上的动态效果,但是标题和说明文字都是暗灰色,看起来很费劲,加上是为英文定制的字体大小,中文字看着更难受。

不过pbase提供了可以自定义的css,进入Gallery的设置界面,在style sheet一栏,有个edit style sheets。点击进入,用creat a new style sheet先取一个名字,然后点击new css,这时出现一个文本框里面是最基本的css。

我修改过的如下:

<!--


A, TD.A, A:link {
color: #FFCC00;
text-decoration: none;
}
A:hover { color: #FFFF66; text-decoration: underline; }
A:visited { color: #FFCC66; }
A:active { color : #d5ae83; }

a.td.thumbnail, a.td.thumbnail:link, a.td.thumbnail:visited, a.td.thumbnail:active {
border: rgb(0, 0, 0) 1px solid;
margin-bottom: -45px;
padding-top: 5px;
width: 172px;
display: block;
background: rgb(35, 35, 35);
height: 197px;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
}
a.td.thumbnail:hover {
border: rgb(95, 121, 216) 1px solid;
margin-bottom: -45px;
padding-top: 5px;
width: 172px;
display: block;
background: rgb(32, 32, 32);
height: 197px;
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
}
body{
margin-bottom: 20px;
margin-top: 0px;
background: rgb(45, 45, 45);
}
div, th, tr, table, font, li, ul, form, blockquote, p, b, i, h1, h2, h3, h4, h5, font, center {
font-family: verdana, arial, sans-serif;
font-size: 10pt;
color: white;

}
font {
margin-left: 4px;
margin-right: 4px;
width: 170px;
display: block;
color: rgb(255, 255, 255);
font: 12px Verdana, Tahoma, Helvetica, sans-serif;
letter-spacing: 0px;
}
h1{
border: rgb(95, 121, 216) 1px dotted;
border-left: 1px none;
border-right: 1px none;
border-top: 1px none;
margin-bottom: 1em;
margin-left: -10px;
margin-right: 0px;
padding: 5px;
width: 100%;
display: block;
background: rgb(0, 0, 0);
color: #ffcc00;
font-size: 18px;
font-weight: bold;
letter-spacing: 4px;
text-align: right;
height: 21px;
position: relative;
filter:
progid:DXImageTransform.Microsoft.gradient(gradientType=1,enabled='true',startColorstr
='#000000',endColorstr='#2D2D2D');
}

h2
{
font-size: 12pt;
font-weight: normal;
text-align: right;
letter-spacing: 8px;
padding-top: 15px;
padding-bottom: 15px;
margin-left: 2px;
margin-right: 2px;
background-color: black;
color: white;
}

h2:first-letter
{
color: #d5ae83;
font-style: bold;
font-size: 22pt;
}


h3 {
border-bottom: rgb(0, 0, 0) 1px dotted;
border-left: 1px none;
border-right: 1px none;
border-top: 1px none;
padding: 2px;
width: 400px;
display: block;
background: rgb(40, 40, 40);
color: rgb(255, 255, 255);
font: 14px;
font-weight: normal;
letter-spacing: 0px;
text-align: center;
}
h5 {
padding-left: 2px;
width: 150px;
display: block;
color: rgb(204, 204, 255);
font-size: 14px;
font-weight: normal;
filter:
progid:DXImageTransform.Microsoft.gradient(gradientType=1,enabled='true',startColorstr
='#000000',endColorstr='#2D2D2D');
}
i{
display: none;
}
img{
border: rgb(0, 0, 0) 1px none;
}
img.thumbnail {
border: rgb(0, 0, 0) 1px solid;
margin: 0px;
padding: 0px;
background: rgb(45, 45, 45);
vertical-align: middle;
}input {
border: rgb(0, 0, 0) 1px solid;
}
table.thumbnail {
width: 10%;
}
td {
border: 1px none;
background: none;
border-collapse: collapse;
empty-cells: show;
}
td.message_body {
border-bottom: rgb(0, 0, 0) 1px dotted;
border-left: 1px none;
border-right: 1px none;
border-top: 1px none;
display: block;
background: rgb(40, 40, 40);
}
.caption {
color: rgb(95, 121, 216);
font-size: 14px Verdana, Tahoma, Helvetica, sans-serif;
font-style: italic;
}
.display {
border: rgb(0, 0, 0) 1px solid;
margin-top: 1em;
background: rgb(0, 0, 0);
filter:
progid:DXImageTransform.Microsoft.Shadow(color="#141414",Direction=135,Strength=5);
}
.lid{
background: rgb(55, 55, 55);
color: rgb(102, 102, 102);
font: 14px Verdana, Tahoma, Helvetica, sans-serif;
text-decoration: none;
}
.message_body {
margin: 5px 5px 10px;
color: rgb(255, 255, 255);
font: 12px Verdana, Tahoma, Helvetica, sans-serif;
}
.sb{
background: rgb(91, 91, 101);
color: rgb(204, 204, 255);
font: 14px Verdana, Tahoma, Helvetica, sans-serif;
text-decoration: none;
}



BODY { margin-top: 0px;}
HR { position : relative;}




BODY { margin-top: 0px;}
HR { position : relative;}

-->

将<!-- 和 -->中的内容(包括<!-- -->)复制到文本框中,然后update css。
这时页面效果将使用这个css。然后返回你的Gallery设置,在style sheet的下拉菜单中选择你刚才创建的css,update,enjoy。。。更多精彩文章及讨论,请光临枫下论坛 rolia.net
Sign in and Reply Report

Replies, comments and Discussions:

  • 枫下拾英 / 摄影艺术 / 优化一下pbase的CSS。。。
    本文发表在 rolia.net 枫下论坛pbase不错,它的几个预设css效果也挺好,能个性化一下相册。个人喜欢alexc和webdev。但是觉得他们都有不足,昨天晚上把这两个css取长补短,按照俺的喜好融合了一下,喜欢的朋友可以试试。

    alexc的特点是字体说明鲜亮。webdev有点在于使用了css filter效果,能产生鼠标移动到缩略图上的动态效果,但是标题和说明文字都是暗灰色,看起来很费劲,加上是为英文定制的字体大小,中文字看着更难受。

    不过pbase提供了可以自定义的css,进入Gallery的设置界面,在style sheet一栏,有个edit style sheets。点击进入,用creat a new style sheet先取一个名字,然后点击new css,这时出现一个文本框里面是最基本的css。

    我修改过的如下:

    <!--


    A, TD.A, A:link {
    color: #FFCC00;
    text-decoration: none;
    }
    A:hover { color: #FFFF66; text-decoration: underline; }
    A:visited { color: #FFCC66; }
    A:active { color : #d5ae83; }

    a.td.thumbnail, a.td.thumbnail:link, a.td.thumbnail:visited, a.td.thumbnail:active {
    border: rgb(0, 0, 0) 1px solid;
    margin-bottom: -45px;
    padding-top: 5px;
    width: 172px;
    display: block;
    background: rgb(35, 35, 35);
    height: 197px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60);
    }
    a.td.thumbnail:hover {
    border: rgb(95, 121, 216) 1px solid;
    margin-bottom: -45px;
    padding-top: 5px;
    width: 172px;
    display: block;
    background: rgb(32, 32, 32);
    height: 197px;
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
    }
    body{
    margin-bottom: 20px;
    margin-top: 0px;
    background: rgb(45, 45, 45);
    }
    div, th, tr, table, font, li, ul, form, blockquote, p, b, i, h1, h2, h3, h4, h5, font, center {
    font-family: verdana, arial, sans-serif;
    font-size: 10pt;
    color: white;

    }
    font {
    margin-left: 4px;
    margin-right: 4px;
    width: 170px;
    display: block;
    color: rgb(255, 255, 255);
    font: 12px Verdana, Tahoma, Helvetica, sans-serif;
    letter-spacing: 0px;
    }
    h1{
    border: rgb(95, 121, 216) 1px dotted;
    border-left: 1px none;
    border-right: 1px none;
    border-top: 1px none;
    margin-bottom: 1em;
    margin-left: -10px;
    margin-right: 0px;
    padding: 5px;
    width: 100%;
    display: block;
    background: rgb(0, 0, 0);
    color: #ffcc00;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: right;
    height: 21px;
    position: relative;
    filter:
    progid:DXImageTransform.Microsoft.gradient(gradientType=1,enabled='true',startColorstr
    ='#000000',endColorstr='#2D2D2D');
    }

    h2
    {
    font-size: 12pt;
    font-weight: normal;
    text-align: right;
    letter-spacing: 8px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 2px;
    margin-right: 2px;
    background-color: black;
    color: white;
    }

    h2:first-letter
    {
    color: #d5ae83;
    font-style: bold;
    font-size: 22pt;
    }


    h3 {
    border-bottom: rgb(0, 0, 0) 1px dotted;
    border-left: 1px none;
    border-right: 1px none;
    border-top: 1px none;
    padding: 2px;
    width: 400px;
    display: block;
    background: rgb(40, 40, 40);
    color: rgb(255, 255, 255);
    font: 14px;
    font-weight: normal;
    letter-spacing: 0px;
    text-align: center;
    }
    h5 {
    padding-left: 2px;
    width: 150px;
    display: block;
    color: rgb(204, 204, 255);
    font-size: 14px;
    font-weight: normal;
    filter:
    progid:DXImageTransform.Microsoft.gradient(gradientType=1,enabled='true',startColorstr
    ='#000000',endColorstr='#2D2D2D');
    }
    i{
    display: none;
    }
    img{
    border: rgb(0, 0, 0) 1px none;
    }
    img.thumbnail {
    border: rgb(0, 0, 0) 1px solid;
    margin: 0px;
    padding: 0px;
    background: rgb(45, 45, 45);
    vertical-align: middle;
    }input {
    border: rgb(0, 0, 0) 1px solid;
    }
    table.thumbnail {
    width: 10%;
    }
    td {
    border: 1px none;
    background: none;
    border-collapse: collapse;
    empty-cells: show;
    }
    td.message_body {
    border-bottom: rgb(0, 0, 0) 1px dotted;
    border-left: 1px none;
    border-right: 1px none;
    border-top: 1px none;
    display: block;
    background: rgb(40, 40, 40);
    }
    .caption {
    color: rgb(95, 121, 216);
    font-size: 14px Verdana, Tahoma, Helvetica, sans-serif;
    font-style: italic;
    }
    .display {
    border: rgb(0, 0, 0) 1px solid;
    margin-top: 1em;
    background: rgb(0, 0, 0);
    filter:
    progid:DXImageTransform.Microsoft.Shadow(color="#141414",Direction=135,Strength=5);
    }
    .lid{
    background: rgb(55, 55, 55);
    color: rgb(102, 102, 102);
    font: 14px Verdana, Tahoma, Helvetica, sans-serif;
    text-decoration: none;
    }
    .message_body {
    margin: 5px 5px 10px;
    color: rgb(255, 255, 255);
    font: 12px Verdana, Tahoma, Helvetica, sans-serif;
    }
    .sb{
    background: rgb(91, 91, 101);
    color: rgb(204, 204, 255);
    font: 14px Verdana, Tahoma, Helvetica, sans-serif;
    text-decoration: none;
    }



    BODY { margin-top: 0px;}
    HR { position : relative;}




    BODY { margin-top: 0px;}
    HR { position : relative;}

    -->

    将<!-- 和 -->中的内容(包括<!-- -->)复制到文本框中,然后update css。
    这时页面效果将使用这个css。然后返回你的Gallery设置,在style sheet的下拉菜单中选择你刚才创建的css,update,enjoy。。。更多精彩文章及讨论,请光临枫下论坛 rolia.net
    • rolia的bbs老是自动加些 [ 相约加拿大:枫下论坛 rolia.net/forum ] < r o l i a. n e t > { { 枫下论坛 rolia.net/forum }进去。。。自己删删吧。。
      • 这是俺除了不喜欢个别斑竹外,最不喜欢的rolia一个特点。好像很早以前没有,后来别的论坛有了,rolia也有了
    • 玩玩pbase之二。调整图片顺序
      不同类的图片多了,自然可以做成不同的目录。不过要是就有1,2张图片,做成单独的目录就有些意义不大。怎么才能在一个目录里面排列顺序?

      进入一个gallery,点击edit this gallery

      在每个图片前面有一列叫做Sequence,这就是每个图片的显示的序列号。。。。 大家该知道怎么做了吧?

      我的习惯是把不同的类别的图片,比如人物的以200开始;动物的,以400开始。这样有足够的编号加入新的图片。
      • 严正抗议黑暗之简单的,机械的,形而上学的,关于人物与动物的编号方式。一些虽有人的皮囊却猪狗不如之辈,应排在450号以后;而一些可爱、善通人性的动物应排在250号左右,或更前的位置。
        黑暗,你看我这乖乖熊能给排个靠前点儿的号吗?
        ^-^ ^_^ ^-^