It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center
                            
                        
                    
                
                                6年前关闭。
            
                    
我被要求将旅行顾问小部件附加到现有项目。问题是我找不到样式的方法。搜索Google已被证明是负面的,我尝试了各种方式来更改样式,但每次我无处可寻。

似乎(通过使用开发人员工具)脚本在调用时在下面的代码内添加了其他div标签,而这些是我需要设置样式的新添加的div。

有任何想法吗?

<div id="TA_linkingWidgetWAR281" class="TA_linkingWidgetWAR">
  <ul id="7vEu3EbbE54" class="TA_links I3eKq4As">
    <li id="P1W6bWTQjEmY" class="M0QRzat">
      Write a review of <a target="_blank" href="http://www.tripadvisor.co.uk/Restaurant_Review-g1217951-d2315832-Reviews-Peking_Chinese_Takeaway-Bradley_Stoke_Gloucestershire_England.html">Peking Chinese Takeaway</a>
    </li>
  </ul>
</div>

<script src="http://www.jscache.com/wejs?wtype=linkingWidgetWAR&amp;uniq=281&amp;locationId=2315832&amp;lang=en_UK&amp;border=true">   </script>

最佳答案

这很容易吧?

您所要做的就是使用浏览器检查器并检查当前的应用样式并根据自己的意愿进行编辑...



例如:http://jsbin.com/ivebet/2/edit

我要做的就是:

#CDSWIDLNKR .widLNKRInner {
    margin: 30px  !important;
    padding: 14px 16px 12px !important;
    background-color: #bada55 !important;
}
ul li img {
    display: none;
}


但是,请小心,您正在破坏widget agreement


  2.1您不得直接或间接地更改,编辑,添加,复制或提取TripAdvisor窗口小部件或TripAdvisor网站上的任何内容的内容或产生其摘要。特别是,您将不会在TripAdvisor窗口小部件之外的网站上显示任何TripAdvisor评分或评论。

关于javascript - 造型TripAdvisor小工具的样式,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16631805/

10-12 14:57