2012-09-03 4 views
1

저는 CSS 스타일링을 사용하여 기본 Facebook 팬 박스의 스타일을 수정하고 있습니다.Facebook는 CSS 스타일링과 같습니다

문제는 I가 (이 "갑상선 목 덩어리 이유"라고) 부모 포스트 콘텐츠 섹션을 타겟팅 할 수있다 "분명히 : 모두"

.-cx-PRIVATE-uiImageBlock__content{ 
    clear: both; 
} 

나는 코드 아래에 시도 하지만 컴퓨터에 따라 클래스 이름이 바뀌므로 내 컴퓨터에서만 작동하는 것 같습니다.

모든 컴퓨터/브라우저/OS에 대해 "상관 없음"과 동일하게 해당 div를 타겟팅 할 수있는 방법이 있습니까?

<div class="clearfix"><a class="external -cx-PRIVATE-uiImageBlock__image -cx-PRIVATE-uiImageBlock__largeImage lfloat" aria-hidden="true" href="http://www.thyroid.com.au/blog/reasons-for-thyroid-neck-lumps/?ref=nf" rel="nofollow" target="_blank" data-ft="{&quot;type&quot;:41,&quot;tn&quot;:&quot;E&quot;}" tabindex="-1" onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.thyroid.com.au\/blog\/reasons-for-thyroid-neck-lumps\/?ref=nf&quot;);" onclick="LinkshimAsyncLink.referrer_log(this, &quot;http:\/\/www.thyroid.com.au\/blog\/reasons-for-thyroid-neck-lumps\/?ref=nf&quot;, &quot;http:\/\/www.facebook.com\/si\/ajax\/l\/render_linkshim_log\/?u=http\u00253A\u00252F\u00252Fwww.thyroid.com.au\u00252Fblog\u00252Freasons-for-thyroid-neck-lumps\u00252F\u00253Fref\u00253Dnf&amp;h=wAQEaywabAQFjkWBq_12A_eL7rVFG7Tv4gu0VXfElQqzWdA&amp;s=1&quot;);"><img class="img" src="http://platform.ak.fbcdn.net/www/app_full_proxy.php?app=254577506873&amp;v=1&amp;size=z&amp;cksum=6832c1a10fa088b2eb112fe71667be00&amp;src=http%3A%2F%2Fwww.thyroid.com.au%2Fwp-content%2Fuploads%2F2011%2F10%2Fhyperthyroidism.jpg" alt=""></a><div class="-cx-PRIVATE-uiImageBlock__content "><div class="fsm fwn fcg"><div class="uiAttachmentTitle" data-ft="{&quot;type&quot;:11,&quot;tn&quot;:&quot;C&quot;}"><strong><a href="http://www.thyroid.com.au/blog/reasons-for-thyroid-neck-lumps/" target="_blank" onclick="LinkshimAsyncLink.referrer_log(this, &quot;http:\/\/www.thyroid.com.au\/blog\/reasons-for-thyroid-neck-lumps\/&quot;, &quot;http:\/\/www.facebook.com\/si\/ajax\/l\/render_linkshim_log\/?u=http\u00253A\u00252F\u00252Fwww.thyroid.com.au\u00252Fblog\u00252Freasons-for-thyroid-neck-lumps\u00252F&amp;h=aAQHSUMCfAQEtYTi5yinio3ZiIIl7p6PPjwOzidpvNqkbYA&amp;s=1&quot;);" rel="nofollow" onmouseover="LinkshimAsyncLink.swap(this, &quot;http:\/\/www.thyroid.com.au\/blog\/reasons-for-thyroid-neck-lumps\/&quot;);">Reasons for Thyroid Neck Lumps</a></strong> </div><span class="caption" data-ft="{&quot;tn&quot;:&quot;L&quot;}">Thyroid and Parathyroid Gland Surgery Sydney</span><div class="mts uiAttachmentDesc translationEligibleUserAttachmentMessage" data-ft="{&quot;tn&quot;:&quot;M&quot;}"> 
Reasons for Thyroid Neck Lumps 
Many people feel a lump in their neck and they immediately become afraid of the C word that no one ever wants to think about. However, this is not always the cause of a lump in the throat and it will be important to get an ...</div></div></div></div> 

그것은 HTML을 모두 게시 너무 크다 그러나 이것은 내가 관심이 부분이다 :

은 아래 내용 HTML입니다.

Facebook Like

+0

생성 된 HTML을 게시 할 수 있다면 다른 방법을 선택할 수 있습니다. – Kyle

답변

0

에 관계없이 자신의 이름의 모든 div을 대상으로 할 경우 단지 그것을 div{ clear: both }를 사용하고 이름이 변경 될 수있는 특정 사업부를 대상으로 할 경우, 당신은 특정 div

를 해결하기 xpath을 사용할 수 있습니다
+0

미안하지만 그게 작동하지 않아요 단지 그 특정 div만을 목표로하고 div : n-th (0) selector를 시도했지만 FBML에서는 작동하지 않습니다 –

+0

'.clearfix/div [0] '? – BigBoss

+0

방금 ​​시도했지만 작동하지 않습니다. –