查看: 1124|回复: 4
收起左侧

[已解决] 求助wordpress达人

 关闭 [复制链接]
寻找周宇轩
发表于 2010-5-31 14:15:50 | 显示全部楼层 |阅读模式
我要把文章版面的宽度缩小,应该怎么做?


文章的版面太宽,读起来不方便,希望能如图所示缩小一点,网上找了很多次教程,改了之后都没有变化,希望大侠教教我

这是style.css代码
  1. /* Body */
  2. #bodyinner {background: url(img/inner-bg.jpg) top center no-repeat;}
  3. * {margin:0; padding:0;}
  4. body {background:#405a6a url(img/body-bg.gif) top center repeat-y; color:#444; font:84% Tahoma,Verdana,Arial,sans-serif; line-height:185%; text-align:center;}
  5. #sitewidth {width:960px; margin:0 auto;}

  6. #top {height:101px; margin:0 auto 22px 0; overflow:hidden;}
  7. #top a {color:#eee; font-weight:700;}
  8. #top a:hover {color:#fff}
  9. #topleft {margin:30px 0 0 15px; width:400px; padding:0; text-align:left; float:left;}
  10. #topleft h1 {padding:0; margin:0 0 10px 0; font-size: 2.1em; letter-spacing:-1px; font-weight:700;}
  11. #topleft h1 a {font-weight:700;}
  12. #topleft h1 a:hover {text-decoration:none;}
  13. #topleft p {font-size:1.2em; font-weight:400; color:#eee;}
  14. #topright {width:500px; color: #eee; padding:0px; float:right; text-align:center; margin:8px 0 0 0; font-size:1em;}
  15. #topright strong {display:none;}
  16. #topright ul {padding:0; margin:0;}
  17. #topright ul li {list-style:none; display:inline; margin:0 8px 10px 8px; padding:0;}
  18. #topright ul li.current_page_item a {color:#fff; text-decoration:underline;}

  19. /* Searchbox */
  20. .searchbox {margin:15px 10px 5px 0; padding:0;}
  21. .searchbox label {color:#fff; font-size:0.9em;}
  22. .searchbox input {background:#eaeaea; padding:3px 0 3px 5px; margin:0; width:120px; color:#666; border:1px solid #bbb;}

  23. /* Main wrap */
  24. #wrap {clear:both; text-align:center; padding:0; margin:0;}

  25. /* Main menu */

  26. /* Headers */
  27. h2, h3, h4 {margin:0 0 12px; color:#555; font-weight:normal;}

  28. /* Sidebar */
  29. #sidebar {text-align:left; margin:0 0 0 615px; width:330px; padding:0;}
  30. #sidebar .left {float:left; width:160px;}
  31. #sidebar .right {float:right; width:160px;}
  32. #sidebar h2, #sidebar h3 {font-size:1.2em; font-weight:700; padding:0 0 2px 0; margin:0 0 5px 0; border-bottom:2px solid #bbb;}
  33. #sidebar p, #sidebar ul ,#sidebar .textwidget,#sidebar form,#sidebar table {margin:0 0 20px 0; padding:0;}
  34. #sidebar table {width:160px;}
  35. #sidebar caption {font-size:1.2em; font-weight:700; color:#555; padding:0 0 2px 0; margin:0 0 5px 0; border-bottom:2px solid #bbb; text-align:left;}
  36. #sidebar ul li {list-style: none; padding:0; margin:0 0 3px 0;}
  37. #sidebar ul li a {font-size:1em; font-weight:700; border:0;}
  38. #sidebar ul li a:hover, #sidebar ul li.current_page_item a {color:#444;}
  39. #sidebar ul li.current_page_item li a {}
  40. #sidebar ul ul {margin:0; padding:2px 0 0 10px;}
  41. #sidebar ul ul li {margin:0 0 2px 0;}
  42. #sidebar ul ul li a {font-size:0.9em; font-weight:400;}

  43. /* Content */
  44. #content {float:left; clear:left; text-align: left; width:600px; margin:0;}
  45. #content h2 {font-size:1.6em; clear:left;}
  46. #content h3 {font-size:1.3em; clear:left;}
  47. #content h2.archiveheader {margin:0 0 20px 0; padding:4px 0; border-bottom:2px solid #bbb;}
  48. #content h2, #content h3, #content h2 a, #content h3 a {font-weight:700;}
  49. #content p {margin:0 0 16px;}
  50. #content a {font-weight:700;}
  51. #content div.postnav {padding:10px 0; margin-bottom:15px;}
  52. #content div.postnavleft {width:48%;}
  53. #content div.postnavright {width:48%; text-align:right;}
  54. #content ul, #content ol {margin:0 0 15px 10px; padding:0 0 0 10px;}
  55. #content ul li, #content ol li {margin:0 0 10px 10px;}
  56. #content ul ul, #content ol ol {margin:5px 0 5px 10px;}

  57. #content img {margin:0; padding:0;}
  58. #content img.left {float:left; margin:0 10px 10px 0;}
  59. #content img.right {float:right; margin:0 0 10px 10px;}
  60. #content img.center {margin:2px auto 10px auto; display:block;}
  61. #content img.framed {padding:5px; background:#222; border:1px solid #555;}

  62. #content .post {margin:0 0 16px;}
  63. #content .timestamp strong {font-size:1.1em; color:#555; font-weight:700;}
  64. #content .timestamp a {font-weight:700;}
  65. #content .postmeta {padding:2px 0; font-size:0.9em; text-align:right; font-weight:400; color:#555; display:block; border-top:2px solid #bbb;}
  66. #content .postmeta a {font-weight:400;}
  67. #content .postpagesnav {margin:15px 0 20px 0; padding:0; font-size:1.2em;}
  68. #content .postpagesnav a {font-weight:400;}
  69. #content .postpagesnav .older {width:48%; float:left;}
  70. #content .postpagesnav .newer {width:48%; float:right; text-align:right;}
  71. #content .prettylist {margin:0 0 20px 0; padding:0;}
  72. #content .prettylist li {list-style:none; margin:0 0 2px 10px; padding:0;}
  73. #content #sidebox {float:right; margin:0 0 5px 10px; text-align:center; padding:5px; width:220px; border:1px solid #ddd;}

  74. /* Footer */
  75. #footer {clear:both; color:#777; text-align:center; border-top:2px solid #bbb;}
  76. #footer p {margin:0; padding:10px 0; line-height: 1.5em;}
  77. #footer .credits {font-size:1.2em;}
  78. #footer a {color:#777;}
  79. #footer a:hover {color:#555; text-decoration:underline;}

  80. /* Comments */
  81. #comments {margin:20px 0 16px 0;}
  82. .comment {margin-bottom:0; padding:8px 5px 5px 10px; font-size:1em; border-bottom:1px solid #bbb;}
  83. #content div.comment p.commenticon {margin:1px 0 9px; line-height:1.4em;}
  84. #content div.comment p {margin:4px 0 4px;}
  85. .gravatarside {background-color:#fff; border:1px solid #ccc; padding:2px; height:32px; width:32px; float:left; margin:2px 8px 5px 0;}
  86. .admin {background-color:#f0f0f0; border-left:1px solid #bbb; border-right:1px solid #bbb;}
  87. #respond {margin:20px 0 0 0; padding:15px 0 0 0;}
  88. #respond p {margin:0 0 10px 0;}
  89. #respond input,#respond textarea {padding:4px; width:250px; background-color:#f4f4f4; color:#666;}
  90. #respond textarea#comment {width:500px;}
  91. #respond input#submit {width:65px;}
  92. #respond input, #respond textarea {font: 100% "Trebuchet MS",Verdana,sans-serif; border: 1px solid #ccc;}
  93. fieldset {border:0;}

  94. /* Tags */
  95. blockquote {padding:5px 15px 2px 15px; margin:10px; border-left:4px solid #eee; color:#777;}
  96. blockquote p {padding:2px 0; margin:0; font-weight:bold;}
  97. code {padding:5px; font-size:1.3em; display:block; margin: 5px 0 16px 0; background-color:#f4f4f4; border:1px solid #ccc;}

  98. /* Links */
  99. a {color:#405a6a; font-weight:400; text-decoration:none;}
  100. a:hover {color:#333; text-decoration:underline;}
  101. a img {border:0;}

  102. /* Float fix */
  103. .contenttext {overflow:hidden;}
  104. * html .contenttext {height:1px; overflow:visible;}
  105. * html .contenttext p {overflow:hidden; width:99%;}

  106. /* WP image align and caption classes */
  107. img.aligncenter {display:block; margin-left:auto; margin-right:auto;}
  108. img.alignright {padding:4px; margin:0 0 2px 7px; display:inline;}
  109. img.alignleft {padding:4px; margin:0 7px 2px 0; display:inline;}
  110. .alignright {float:right;}
  111. .alignleft {float:left;}
  112. .wp-caption {border:1px solid #ddd; text-align:center; background-color:#f3f3f3; padding-top:4px; margin:10px; border-radius: 3px;}
  113. .wp-caption img {margin:0; padding:0; border:0 none;}
  114. .wp-caption-dd {font-size: 0.9em; line-height:1.5em; padding:0 4px 5px; margin:0;}

  115. /* Various classes */
  116. .feedlink {padding:20px 0 20px 52px; margin:15px 0 10px 0; background: url(img/feed.jpg) center left no-repeat;}
  117. .splitleft {float:left; padding-top:10px; width:49%; text-align:left;}
  118. .splitright {float:right; width:49%; text-align:right;}
  119. .textright {text-align:right;}
  120. .textcenter {text-align:center;}
  121. .clear {visibility:hidden; clear:both;}
  122. .hide {display:none;}
复制代码

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?快速注册

x
寻找周宇轩
 楼主| 发表于 2010-5-31 19:37:50 | 显示全部楼层
好吧,我杯具了
寻找周宇轩
 楼主| 发表于 2010-6-1 14:39:26 | 显示全部楼层
诶,高手呢?
寻找周宇轩
 楼主| 发表于 2010-6-7 18:35:52 | 显示全部楼层
算了吧,没人会
maxi211
发表于 2010-6-7 22:20:23 | 显示全部楼层
建议LZ到专门的WP论坛去求助一下~~
您需要登录后才可以回帖 登录 | 快速注册

本版积分规则

手机版|杀毒软件|软件论坛| 卡饭论坛

Copyright © KaFan  KaFan.cn All Rights Reserved.

Powered by Discuz! X3.4( 沪ICP备2020031077号-2 ) GMT+8, 2025-6-17 19:03 , Processed in 0.159100 second(s), 18 queries .

卡饭网所发布的一切软件、样本、工具、文章等仅限用于学习和研究,不得将上述内容用于商业或者其他非法用途,否则产生的一切后果自负,本站信息来自网络,版权争议问题与本站无关,您必须在下载后的24小时之内从您的电脑中彻底删除上述信息,如有问题请通过邮件与我们联系。

快速回复 客服 返回顶部 返回列表