aspx ページに次の HTML マークアップがあるとします。
<div id = 'logo-container' class='foo'>
<img alt='logo' src ="images/foo.png" />
</div>
runat=serverではなく、純粋な html 。
aspx code-behindで、CSS セレクターを使用して DOM 要素を参照することは可能ですか? 次のような IMG への参照を取得できますか。
foreach element in GetElement("#logo-container img")
{
do something with element, e.g. change a style attribute
}