Jump to content
View in the app

A better way to browse. Learn more.

Дизайн и модификация Invision Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Вставленная изображение выходит за рамки поста

IPBoard 3.4.5

Вставленная изображение выходит за рамки поста

 

Settings: Topics, Posts and Polls: - Automatic resize image force size: 1024

 

 

На бальшом разрешение монитора всё ok:

 

7k575.jpg

 

Но на 800/600:

 

hv9gw.jpg

 

Ссылка для примера: http://goo.gl/WkPDRK

 

Выручайте пожалуйсто :) я никак не смог исправить.

Featured Replies

В css у Вас

 

img.bbc_img {

max-width: 1024px !important;

max-height: 1024px !important;

}

 

Меняйте на

 

img.bbc_img {

max-width: 70% !important;

max-height: 70% !important;

}

 

 

И будет масштабировать.

  • Author

img.bbc_img {
max-width: 1024px !important;
max-height: 1024px !important;
}

Это определяется с: "Settings: Topics, Posts and Polls: - Automatic resize image force size: 1024"

 

Если добавить в css:

img.bbc_img {
max-width: 70% !important;
max-height: 70% !important;
}

Он не работает. А то можно и 99%

 

skin_global:

<if test="$this->settings['resize_img_force']">
<!-- Forces resized images to an admin-defined size -->
<style type='text/css'>
	img.bbc_img {
		max-width: {$this->settings['resize_img_force']}px !important;
		max-height: {$this->settings['resize_img_force']}px !important;
	}
</style>
<else />
<style type='text/css'>
	img.bbc_img { max-width: 100% !important; }
</style>
</if>

  • Author

@Атаман Спасибо. Сделаю так, думаю будет лучше :)

 

Работает в любом разрешение монитора

 

<if test="$this->settings['resize_img_force']">
   <!-- Forces resized images to an admin-defined size -->
   <style type='text/css'>
       img.bbc_img {
           max-width: 99% !important;
           max-height: 99% !important;
       }
   </style>
<else />
   <style type='text/css'>
       img.bbc_img { max-width: 100% !important; }
   </style>
</if>

Раздобыл доступ на один ресурс.

 

Это определяется с: "Settings: Topics, Posts and Polls: - Automatic resize image force size: 1024"

 

 

bfee1ed935a98b9a566278cc8be26afc.jpg

 

Просто нужно установить 0, и после в коде уменьшить %

 

 

Работает в любом разрешение монитора

 

<if test="$this->settings['resize_img_force']">
   <!-- Forces resized images to an admin-defined size -->
   <style type='text/css'>
       img.bbc_img {
           max-width: 99% !important;
           max-height: 99% !important;
       }
   </style>
<else />
   <style type='text/css'>
       img.bbc_img { max-width: 100% !important; }
   </style>
</if>

 

  • Author

@Атаман Огромное спасибо за внимание и помощь. Всё работает отлично.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.