Teil von  SELFPHP
  +++ SELFPHP CronJob-Service :: Jetzt auch als Professional-Version verfügbar! +++

:: Anbieterverzeichnis ::

Globale Branchen

Informieren Sie sich über ausgewählte Unternehmen im Anbieterverzeichnis von SELFPHP  

 

:: SELFPHP Forum ::

Fragen rund um die Themen PHP? In über 120.000 Beiträgen finden Sie sicher die passende Antwort!  

 

:: Newsletter ::

Abonnieren Sie hier den kostenlosen SELFPHP Newsletter!

Vorname: 
Name:
E-Mail:
 
 

:: Qozido ::

Die Bilderverwaltung mit Logbuch für Taucher und Schnorchler.   

 
 
Working with the DOM View


SELFPHP Produktempfehlung
Microsoft Windows Server 2008
Seite Windows Server 2008
Seite

Microsoft SQL Server 2008
Seite SQL Server 2008
Seite

Microsoft Expression Web 3
Seite Microsoft Expression
Seite


Using the DOM Tree View in SuperPreview and Expression Web
You’ll now continue to use SuperPreview’s DOM tree view to identify the elements creating the Layout problems. You’ll then use this information in Expression Web 3 and locate then fix the problematic CSS rules.

  1. In the IE6 view within SuperPreview click the second paragraph (beginning with the line “It’s the float model problem”). In addition to the visual highlighting, you will now have expanded the DOM view and it has identified the selected element with the class named “bodyarea” and more specifically a paragraph with a class named “dofloat”.




    Now that you have identified the name of the element and class that is defining the appearance of this paragraph, you’ll go investigate the code in Expression Web 3.
  2. Alt-tab back to Expression Web and click the Code view found at the bottom of the window for the default.html page. Scroll to the top if necessary and locate line 7 which is pointing to the external stylesheet. Ctrl+click the underlined value ‘styles.css’ to open this stylesheet in a new tab.
  3. Because we identified the name of the problematic element as bodyarea we can do a quick search for it in Expression Web rather than scrolling through the document. Press Ctrl+F to open the Find and Replace window and in the Find What section type bodyarea, then click Find Next. You will be sent immediately to this line in your CSS code and it is highlighted in grey.




  4. Close the Find and Replace window. Now you’ll test whether or not the rule div.bodyarea is truly responsible for the layout problem.
    The easy thing to do would be to delete the rule ‘height:100%’ and see what happens. However, this can be dangerous because it may end up not being the rule responsible for the problem and now you have potentially created another problem if you don’t restore this rule. But are you sure you can remember the exact rule after it’s deleted? A better solution would be to turn off the rule temporarily and then you always have the option to restore it. You can do this using a comment.
  5. You can see a comment immediately to the right of the rule ‘height:100%’ it’s the grey text to the right. Any text which is commented in CSS is ignored by the browser; traditionally comments are used as notes for the author or other people working on the project, but can be used to disable rules as well.
    Delete the /* characters before the word trigger and notice that the text becomes activated. Click once before the rule ‘height:100%’ and type /* and now the entire line turns grey again.




  6. Choose File > Save All and then Alt-Tab back to SuperPreview. Press Ctrl+R to refresh the views and then locate the paragraph in IE6. The text is wrapping which indicates success!
    It’s probably clear that debugging browser issues is not particularly fun, but with SuperPreview and Expression Web 3, the process is simplified and precious time can now be spent doing other things for your website.


Seite 3 von 3 1 2 3



Downloads

Copyright © 2010
Microsoft Deutschland GmbH
Alle Rechte vorbehalten.

 Microsoft Deutschland GmbH
 




:: Premium-Partner ::

Webhosting/Serverlösungen


Premium-Partner MECO Systemhaus GmbH & Co. KG
Premium-Partner PSW GROUP GmbH & Co. KG
Premium-Partner BPI-Systeme
Premium-Partner Pixel X
Premium-Partner
 

:: SELFPHP Sponsoren ::


DM Solutions
Microsoft Deutschland GmbH
twosteps.net - ...Premium-Webhosting
Sedo - Bei uns wird PHP großgeschrieben
hostfactory.ch - OptimaNet Schweiz AG
ZEND - The PHP Company
Kaspersky Labs
HighText iBusiness
SELFPHP Sponsoren
 

Qozido


© 2001-2013 E-Mail SELFPHP OHG, info@selfphp.deImpressumKontakt