사용자: 게시판스킨 읽기 작업

This commit is contained in:
whitedot
2013-01-25 14:03:59 +09:00
parent 2a2f5358a6
commit ce16a578cb
2 changed files with 12 additions and 11 deletions

View File

@ -269,10 +269,11 @@ table a {color:#000;text-decoration:none}
#bo_v_link li {padding:0 20px 0 15px;border-bottom:1px solid #eee;background:#f7f7f2}
#bo_v_link a {display:inline-block;padding:8px 0 7px}
.bo_v_link_cnt {display:inline-block;margin:0 10px}
#bo_v_atc {zoom:1}
#bo_v_atc {min-height:200px;height:auto !important;height:200px;zoom:1}
#bo_v_atc:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_atc h1 {margin:0;padding:0;height:0;overflow:hidden}
#bo_v_con {padding:20px;min-height:200px;height:auto !important;height:200px;background:#fff;line-height:1.8em}
#bo_v_img {margin:0 20px}
#bo_v_con {padding:20px;line-height:1.8em}
#bo_v_act {padding:20px 0;border-bottom:1px solid #eee;text-align:center}
#bo_v_act a {margin-right:5px;vertical-align:top}
#bo_v_act strong {color:#0075b8}
@ -287,9 +288,9 @@ table a {color:#000;text-decoration:none}
.bo_v_com li {float:left;margin-left:5px}
/* 게시판 댓글 */
#bo_vc {padding:10px 20px 20px 20px;border-bottom:1px solid #eee;border-left:10px solid #eee}
#bo_vc {padding:10px 20px 20px 20px;border-bottom:1px solid #eee;border-left:10px solid #eee;background:#f9f9f9}
#bo_vc h2 {margin:0;padding:0;height:0;overflow:hidden}
#bo_vc article {margin-bottom:5px;padding:0 0 10px;border-bottom:1px solid #f7f7f2}
#bo_vc article {margin-bottom:5px;padding:0 0 10px;border-bottom:1px solid #eee}
#bo_vc header {position:relative;zoom:1}
#bo_vc header:after {display:block;visibility:hidden;clear:both;content:""}
#bo_vc header .icon_reply {position:absolute;top:15px;left:-20px}

View File

@ -26,8 +26,8 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
</section>
<?
$cnt = 0;
if ($view['file']['count']) {
$cnt = 0;
for ($i=0; $i<count($view['file']); $i++) {
if (isset($view['file'][$i]['source']) && $view['file'][$i]['source'] && !$view['file'][$i]['view'])
$cnt++;
@ -114,7 +114,7 @@ if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
<header>
<h1>본문</h1>
</header>
<div>
<div id="bo_v_img">
<?
// 파일 출력
for ($i=0; $i<=count($view['file']); $i++) {
@ -176,16 +176,16 @@ function board_move(href)
<script>
// 이미지 등비율 리사이징
$(document).ready(function(){
var img = $('#bo_v_atc img');
$(function(){
var img = $('#bo_v_img img');
var img_org_width = img.width();
$(window).resize(function(){
var wrapper_width = $('#bo_v_atc').width();
var img_wrap = $('#bo_v_img').width();
img.each(function() {
var img_width = $(this).width();
if (img_width > wrapper_width) {
if (img_width > img_wrap) {
$(this).addClass('img_fix');
} else if (img_width <= wrapper_width && img_width >= img_org_width) {
} else if (img_width <= img_wrap && img_width >= img_org_width) {
$(this).removeClass('img_fix');
}
});