Перейти к публикации
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.

кликабельный фон ip.board 3.4.7

Опубликовано:

Не могу сделать задний фон кликабельный.

Код перекрывает форум, куда не нажмешь, перекидает на страницу рекламодателя, и так в 2х вариантах.

 

Вариант 1

 

Добавляю

В css

#_link {
height:280px;
margin-top:40px;
position:absolute;
text-indent:-9999px;
width:75%;
z-index:1;
}

 

после body

 

<a href="ваша ссылка" id="_link" target="_blank"></a>

 

Вариант 2

 

<a id="_click" target="_blank" style="position: absolute; display: block; left: 0px; top: 0px; width: 100%; height: 100%;" href=""></a>

Рекомендованные сообщения

Опубликовано:

Хм, может, проблема в слое #ipbwrapper (смотря какой стиль Вы используете. А так этот слой тоже растянут на весь экран, поэтому и перекрывает. Тут надо в верстке покопаться).

 

Вариант: попробовать реализовать на Jquery, что-то вроде:

$('body').click(function(e){
   if (e.target === this) {
       window.location = "link.html"
   }
});

Опубликовано:
  • Автор

Уже разобрался, спасибо.

Создайте аккаунт или войдите в него для комментирования

Сейчас на странице 0

  • Нет пользователей, просматривающих эту страницу.

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.