Inspect Element and View Source Code are showing two different things

后端 未结 2 908
青春惊慌失措
青春惊慌失措 2021-01-03 04:05

I\'m using Inspect Element in Google Chrome to figure out what is controlling the size of the slideshow controller buttons underneath the slideshow of this template website:

相关标签:
2条回答
  • 2021-01-03 04:29

    This list generated by JS. Check js/playSlider.js starting from line #335.

    0 讨论(0)
  • 2021-01-03 04:42

    "Source code" is what the browser received from the server. It can be changed by JavaScript; the "Inspect Element" always shows the current shape of the document.

    EDIT: Then again, sometimes things are not complicated. Look what I found in the source code:

    <li>
        <div class="textHolder">
        <h3>Cardiology</h3>
        <p><span><strong><a href="#">Cardiac Rehabilitation Center</a></strong> We helped Glade Inc. design their latest fragrance for household perfumes </span></p>
        </div>
        <img src="images/temp/slider_img_01.jpg" alt="" /> 
    </li>
    

    It is then further modified by JS.

    0 讨论(0)
提交回复
热议问题