body {
font-family:"tahoma", "tahoma", "tahoma", tahoma;
font-style:normal;
font-variant:normal;
font-weight:400;
font-size:12px;
line-height:normal;
text-align:center;
background-color: #1B2F3A;
margin: 0px;
background-image: url(http://auroraa.webloghaa.com/files/body_bg.jpg);
background-repeat: repeat-x;
background-position: top;
}
.right {
float: right;
}
.right {
float: right;
}
.aligncenter {
display: block;
margin-right: auto;
margin-right: auto;
}
.alignright {
float: right;
}
.alignright {
float: right;
}
.clear {
clear: both;
}
h1 {
font-family: "Tahoma", Tahoma, Tahoma;
font-size: 48px;
font-weight: normal;
margin: 0px;
}
h2 {
font-size: 18px;
color: #1B2F3A;
font-weight: bold;
margin:0px;
padding: 0px;
}
h3 {
font-size: 16px;
line-height: 20px;
color: #FFFFFF;
}
h3 span {
font-weight: bold;
}
h4 {
font-size: 16px;
color: #003300;
}
#wrapper {
width: 940px;
}
#top_menu {
height: 30px;
width: 100%;
color: #FFFFFF;
}
#pages {
font-size: 10px;
color: #FFFFFF;
width: 600px;
text-align: right;
line-height: 30px;
}
#pages ul {
padding: 0;
margin: 0;
}
#pages li {
display: inline;
padding-right: 15px;
color: #fff;
text-transform: uppercase;
}
#pages a {
color: #9CBDCC;
text-decoration: none;
}
#pages a:hover {
color: #FFFFFF;
}
#search {
width: 220px;
height: 30px;
text-align: right;
background-image: url(http://auroraa.webloghaa.com/files/bgr-search.gif);
background-repeat: no-repeat;
background-position: right;
}
#search input{
background: transparent;
border: 0;
color: #a3a192;
float: right;
font-size: 12px;
margin: 7px 0 0 10px;
width: 178px;
padding:2px;
}
#search .btn{
padding: 0;
width: auto;
height: 20px;
font-weight: bold;
color: #D3E7F0;
margin-top: 7px;
margin-right: 0;
margin-bottom: 0;
margin-right: 0;
}
.blog-search {width:100px;}
#header {
color:#D3E7F0;
text-align: left;
width: 100%;
height: 110px;
background-image: url(http://auroraa.webloghaa.com/files/moon-300x100.jpg);
background-repeat: no-repeat;
background-position: right top;
}
#header a {
text-decoration: none;
color:#D3E7F0;
}
#header a:hover {
color:#FFFFFF;
}
#categories {
width: 100%;
height: 31px;
text-align: right;
}
#categories ul {
margin: 0px;
padding: 0px;
width: 800px;
}
#categories a {
margin-right: 15px;
font-size: 14px;
color: #1B2E3C;
font-weight: bold;
text-decoration: none;
line-height: 32px;
text-transform: uppercase;
font-family: Tahoma, Tahoma, Tahoma;
}
#categories li {
float: right;
margin: 0px;
padding: 0px;
list-style: none;
}
#categories li li {
float: right;
margin: 0px;
padding: 0px;
width: 150px;
}
#categories li li a, #categories li li a:link, #categories li li a:visited {
float: none;
margin: 0px;
padding: 2px 5px;
width: 150px;
color: #fff;
font-size: 11px;
line-height: 30px;
background-color: #476674;
display: block;
}
#categories li li a:hover, #categories li li a:active {
color: #fff;
background-color: #000000;
text-decoration: none;
}
#categories li ul {
right: -999em;
position: absolute;
z-index: 10;
width: 10em;
}
#categories li:hover ul {
display: block;
right: auto;
}
#categories a:hover {
text-decoration: underline;
}
#categories li:hover ul, #categories li.sfhover ul {
right: auto;
}
#rss{
right:0px;
display: inline;
float:right;
margin-top: -10px;
}
.cat {width: 890px;}
#container {
width: 100%;
margin-top: 20px;
}#content {
background-color: #eaf3f7;
padding: 10px;
width: 610px;
text-align: right;
border: 1px solid #000000;
}
.post {
width: 100%;
}
.post h2 a,.post h2 a:visited, .post h3 a,.post h3 a:visited {
color:#1B2F3A;
text-decoration: none;
font-size: 18px;
}
.post h2 a:hover {
text-decoration: underline;
}
.post h3 a,.post h3 a:visited {
color:#476C7F;
text-decoration: none;
font-size: 16px;
}
.post h3 a:hover {
text-decoration: underline;
}
.post h3, #content h3 {
color:#000000;
}
.post p a,.post p a:visited {
color:#1B2F3A;
text-decoration: none;
font-weight: bold;
}
.post p a:hover {
text-decoration: underline;
font-weight: bold;
}
.post_details {
height: 20px;
width: 100%;
}
.post_details a {
color: #1B2F3A;
text-decoration: none;
font-weight: bold;
}
.post_details a:hover {
text-decoration: underline;
}
.post_data {
font-size: 10px;
color: #666666;
width: 480px;
height: 20px;
line-height: 20px;
text-align: right;
}
.post_comments {
text-align: right;
height: 20px;
font-size: 10px;
line-height: 20px;
background-image: url(http://images/comments_icon.jpg);
background-repeat: no-repeat;
background-position: right center;
text-indent: 20px;
}
.post p img {
padding: 2px;
border: 1px solid #000000;
margin: 5px;
}
.post p {
line-height: 20px;
}
.more {
font-size: 10px;
color: #1B2F3A;
width: 100%;
height: 20px;
line-height: 20px;
text-align: right;
border-bottom-width: 1px;
border-bottom-style: dotted;
border-bottom-color: #8BABB8;
padding-bottom: 5px;
margin-bottom: 20px;
}
.more a {
color:#000000;
text-decoration: none;
}
.tags {
font-size: 10px;
color: #1B2F3A;
width: 400px;
height: 20px;
line-height: 20px;
text-align: right;
background-image: url(http://auroraa.webloghaa.com/files/tags1.jpg);
background-repeat: no-repeat;
background-position: right ;
text-indent: 25px;
}
.tags a {
text-decoration:none;
}
.tags a:hover {
text-decoration: underline;
}
.read_more {
text-align: right;
height: 20px;
font-size: 10px;
line-height: 20px;
color: #FFFFFF;
}
#comments-list {
color:#000000;
}
#comments-list a {
font-weight: bold;
}
#comments-list img {
padding: 0px 10px 10px 0px;
}
#comments-list li {
background-color: #E2EFF5;
padding: 10px;
border-top-width: 1px;
border-bottom-width: 1px;
border-top-style: solid;
border-bottom-style: solid;
border-top-color: #F7FBFD;
border-bottom-color: #CCCCCC;
}
.comment-meta {
color:#666666;
font-size: 10px;
text-align: right;
}
.comment-meta a {
color:#1B2F3A;
text-decoration:none;
}
.comment-meta a:hover {
text-decoration:underline;
}
.avatar {
float: right;
padding: 2px;
}
.pagination {
width: 100%;
padding: 5px;
}
.pagination a, .pagination a:visited {
color:#006600;
text-decoration:none;
}
.pagination a:hover {
text-decoration: underline;
}
.nav {
width: 82px;
height: 21px;
color:#006600;
}
.nav a, .nav a:visited {
color:#006600;
text-decoration:none;
}
.nav a:hover {
text-decoration: underline;
}
#sidebar {
background-color: #EAF3F7;
width: 280px !important;
width: 270px;
padding: 10px;
text-align: center;
}
.box {
width: 93%;
background-color: #03080C;
background-image: url(http://auroraa.webloghaa.com/files/box1.jpg);
background-repeat: no-repeat;
background-position: center top;
padding: 10px;
text-align: right;
color: #FFFFFF;
margin-bottom: 20px;
line-height: 20px;
font-family: Tahoma, Tahoma, Tahoma, Tahoma;
}
.box a, .box a:visited {
color:#9ABBCA;
font-weight: bold;
text-decoration: none;
}
.box a:hover {
color:#FFFFFF;
text-decoration: underline;
}
.box ul {
margin: 0px;
padding: 0px;
list-style-position: inside;
}
.boxline {
border-top-width: 1px;
border-top-style: solid;
border-top-color: #243440;
margin: 0px;
height: 5px;
}
.box_title {
color:#FFFFFF;
font-size: 18px;
width: 100%;
text-align: center;
padding-top: 5px;
padding-bottom: 5px;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #000000;
}
#footer {
width: 100%;
text-align: center;
height: 20px;
font-size: 10px;
color: #FFFFFF;
padding-top: 10px;
background-color: #000000;
margin-top: 20px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #666666;
}
#footer a, #footer a:visited {
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
}
#footer a:hover {
text-decoration: underline;
}
.previous{
height:19px;
padding:0px 10px 0px 18px;
float:right;
font-weight:bold;
background-image: url(http://images/prev.gif);
background-repeat: no-repeat;
background-position: right center;
}
.next{
height:19px;
padding:0px 18px 0px 35px;
float:right;
font-weight:bold;
background-image: url(http://images/next.gif);
background-repeat: no-repeat;
background-position: right center;
}
*html .next{
height:18px;
text-align:right;
}
.previous a, .previous a:visited, .next a, .next a:visited{
color:#666666;
}
.previous a:hover, .next a:hover{
color:#5283C0;
font-weight:bold;
}
.previous:hover{
background-image: url(http://auroraa.webloghaa.com/files/prev_on.gif);
background-repeat: no-repeat;
background-position: right center;
}
.next:hover{
background-image: url(http://auroraa.webloghaa.com/files/next_on.gif);
background-repeat: no-repeat;
background-position: right center;
}
.meta_entry {
width:98%;
background:#000000;
color:#FFFFFF;
font-size: 10px;
line-height: 15px;
padding: 5px;
margin-bottom: 10px;
}
.meta_entry a, #meta_entry a:visited {
color:#CFE3EC;
font-weight: bold;
}
.meta_entry a:hover {
color:#FFFFFF;
font-weight: bold;
}
.navigation a {
background-color: #1B2F3A;
line-height: 20px;
color: #FFFFFF;
padding: 5px;
text-decoration: none;
}
.navigation a:hover {
background-color: #03080C;
}
.wp-caption {
border: 1px solid #ddd;
text-align: center;
background-color: #f3f3f3;
padding-top: 4px;
margin: 10px;
-moz-border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
}
.wp-caption img {
margin: 0;
padding: 0;
border: 0 none;
}
.wp-caption-dd {
font-size: 11px;
line-height: 17px;
padding: 0 4px 5px;
margin: 0;
}
blockquote {
border-right:2px dotted #1B2F3A;
background:#eef3f8;
margin-bottom:10px;
margin-right:20px;
padding:10px;
}
blockquote p {
margin:0;
}
a.download:link {
font-family: Tahoma, Tahoma,Tahoma, Tahoma;
font-size: 16px;
color: #F9FEFF;
text-transform: uppercase;
font-weight: bold;
line-height: 50px;
text-align: center;
text-decoration: none;
background: url(http://images/download_bg.jpg) no-repeat 0 0;
height: 50px;
width: 400px;
padding-right: 100px;
display: block;
clear: both;
overflow: hidden;
margin: 10px 50px 10px 50px;
}
a.download:hover {
background-position: 0px -50px;
color: #D9EAF2;
text-decoration: none;
}
#related {
width: 600px;
clear: both;
}
#related ol {
margin-top: 0px;
}
#related p {
height: 40px;
width: 645px!important;
width: 600px;
position: relative;
right: -25px;
font-size: 16px;
font-weight: bold;
color: #FFFFFF;
line-height: 30px;
text-indent: 40px;
background-image: url(http://images/related_bg.jpg);
background-repeat: no-repeat;
background-position: right top;
margin: 0;
}
#related li a {
color: #1B2F3A;
text-decoration: none;
font-weight: bold;
}
#related li a:hover {
text-decoration: underline;
}
#flickrrss img {
margin: 3px;
}
-1
A
回答
0
從這裏開始嘗試。您可能需要其他>時間/日期功能,位於左側頁面的中間位置。
http://codex.wordpress.org/Function_Reference/
編輯
如果你想在目前的職位的日期和時間,然後使用the_time();
。您需要爲此添加一些參數才能獲取正確的時間和日期格式。看看這裏的一些例子http://codex.wordpress.org/Template_Tags/the_time,並在這裏看看所有參數用於日期/時間格式的完整列表http://php.net/manual/en/function.date.php
1
您提供的代碼只是控制您的博客外觀的CSS 。要添加功能就像您需要修改wordpress模板的日期一樣。這裏有一些資源,讓你在正確的方向前進:
- 瞭解的WordPress的基礎知識:http://codex.wordpress.org/Getting_Started_with_WordPress#WordPress_for_Beginners
- 瞭解如何修改WordPress的 模板: http://codex.wordpress.org/Stepping_Into_Templates
- 格式的日期和時間: http://codex.wordpress.org/Formatting_Date_and_Time
相關問題
- 1. 如何將此短代碼添加到Wordpress標題[dyna dynami =「cittiess」]?
- 2. 如何在此wordpress代碼中添加徽標
- 3. 如何在WordPress中的content-page.php中的「</article>」之後添加代碼?
- 4. 如何在此代碼中添加mysql_real_escape_string()
- 5. 在URL(Wordpress)後添加的代碼
- 6. 如何添加此代碼博客
- 7. 如何在wordpress中設置此代碼
- 8. 如何在此Google地圖代碼中添加標記?
- 9. WordPress的:在此代碼中添加到帖子
- 10. 在Nsdate中添加30天的日期而不考慮系統日期
- 11. 如何在此wordpress簡碼中添加rel =「nofollow」和target =「_ blank」?
- 12. PHP代碼只得到當前日期(系統日期)
- 13. 如何在.hta代碼中添加日期範圍?
- 14. 如何添加enfold主題短代碼到我的wordpress主題
- 15. 如何添加excerpt_more過濾器到此摘錄代碼Wordpress
- 16. 在Wordpress中添加PHP短代碼
- 17. 如何將<br />添加到WordPress的小部件標題?
- 18. ASP MVC3如何添加系統當前日期?
- 19. 如何在粘貼的代碼中添加自定義標題?
- 20. 如何將mysql_real_escape_string添加到此代碼?
- 21. 如何將IOExcpetion添加到此代碼?
- 22. 如何調試此Java代碼?該代碼旨在幫助在Linux系統
- 23. <img/> wordpress代碼中的問題
- 24. 如何將cookie添加到此代碼?
- 25. 如何在WordPress的類別描述中添加當前日期?
- 26. 如何使用此代碼,以填補在android系統
- 27. Excel VBA代碼來比較系統日期和工作表中的日期
- 28. 如何添加過期,我使用此代碼頭
- 29. 在此PHP代碼中添加文本?
- 30. 如何在Wordpress中的回聲短代碼中添加php echo
您發佈的代碼沒有很好地代表CSS,因此您無法爲其添加任何html。你需要在進一步學習之前學習一些基礎知識。 – anothershrubery 2011-02-04 11:40:05
你是什麼意思?我只需要添加日期。 – Melik4 2011-02-05 12:39:18
在這種情況下,「添加日期」究竟意味着什麼? – 2011-02-07 14:27:38