Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

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.

Java Script Anzeige größe ändern

Empfohlene Antworten

Hi Leute,

hab da mal ne Frage.

Ich will auf einer HP ein Script einbinden, das ich von einem Anbieter zur Verfügung gesellt bekomme.

<SCRIPT TYPE="text/javascript" LANGUAGE="javascript" SRC="http://www.wieistmeineip.de/script/"></SCRIPT>

Die Anzeige von dem Script ist mir aber zu klein für eine eigene Site.

Hat jemand einen Plan wie ich die Anzeige für dieses Script vergrößern kann????

Danke für die Hilfe schon mal im vorraus.

Mike

Schreib oben in dein Stylesheet

<style type=text/css>
#script a{font-size:20px !important;}
#script table{width:200px !important; border:1px solid black !important;}
#script td{width:200px !important;text-align:center !important;background-image:url("") !important;}
#script img{display:none !important;}
</style>[/php]

und den JavaScript Aufruf schreibst du innerhalb von

[php]<div id=script> ...</div>

Stell mich jetzt vielleicht gerade bissel blöd an aber ich benutze kein php sondern nur html.

mache ich es da genauso? *blöde Frage ich weiss* *geht schon in Hundedeckung*

Das ist HTML mit CSS um die Formatierung zu ändern.

Ist kein PHP drin, ich hatte das nur in [ php] Code geschrieben damit es bunt wird ;)

Schreib oben in dein Stylesheet

<style type=text/css>
#script a{font-size:20px !important;}
#script table{width:200px !important; border:1px solid black !important;}
#script td{width:200px !important;text-align:center !important;background-image:url("") !important;}
#script img{display:none !important;}
</style>[/php]

und den JavaScript Aufruf schreibst du innerhalb von

[php]<div id=script> ...</div>

Was bringt das mit dem "!important" ???

Das überschreibt die Angaben die in dem Script selber gemacht wurden. Da steht nämlich leider immer sowas wie:

style="font-family:Helvetica,Arial,sans-serif;font-size:10px;color:#FF0000;text-decoration:none;"

und ohne !important hat das im Script Vorrang vor dem allgemeinen Stylesheet, weil es später genannt wird.

http://css4you.de/wscss/css06.html#d

Das überschreibt die Angaben die in dem Script selber gemacht wurden. Da steht nämlich leider immer sowas wie:
style="font-family:Helvetica,Arial,sans-serif;font-size:10px;color:#FF0000;text-decoration:none;"

und ohne !important hat das im Script Vorrang vor dem allgemeinen Stylesheet, weil es später genannt wird.

http://css4you.de/wscss/css06.html#d

alles klar, danke für die aufklärung...

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.