繁体   English   中英

Google评论100%宽度

[英]Google Reviews 100% Width

我正在尝试将嵌入网站的Google评论部分的宽度设置为100%,但是我不确定如何在Google Javascript中执行此操作。

有什么建议么?

 <script language='javascript1.1'> var nr_placeid = 'ChIJqdfzoNrwBFMRQ1rW3mNlM8o'; var nr_width = 320; var nr_height = 305; var nr_directreviewbox = 0; var nr_buttonCol = "abca67"; // Amend this value to change your review button colour (hex color values only rrggbb) var nr_transparency = true; // Set this to true to have a transparent widget with no border </script> <script language='javascript1.1' src='https://www.netrite.net/google-review-code/googlereviews_ssl.js'></script> 

你去了,像个魔法一样工作。 宽度为100%。 希望这可以帮助!

 <script language='javascript1.1'> var nr_placeid = 'ChIJqdfzoNrwBFMRQ1rW3mNlM8o'; var nr_width = "100%"; var nr_height = 305; var nr_directreviewbox = 0; var nr_buttonCol = "abca67"; // Amend this value to change your review button colour (hex color values only rrggbb) var nr_transparency = true; // Set this to true to have a transparent widget with no border </script> <script language='javascript1.1' src='https://www.netrite.net/google-review-code/googlereviews_ssl.js'></script> 

替代解决方案,测试以下脚本:

<div id="reviewsmaker"></div> 

<script src="https://cdn.rawgit.com/stevenmonson/googleReviews/6e8f0d79/google-places.js" async></script> 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> 
<script type="text/javascript" data - placeid="ChIJqdfzoNrwBFMRQ1rW3mNlM8o" src="https://gmb.reviewsmaker.com/widget/reviews.js"></script> 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM