Html 为什么赢了';这不是聊天室吗? 狼谷聊天 ("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
这是我放在我的网站上的聊天室的代码。由于某些原因,它居中,但居中已关闭。如何更正此问题?将最外层div的Html 为什么赢了';这不是聊天室吗? 狼谷聊天 ("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34,html,css,Html,Css,这是我放在我的网站上的聊天室的代码。由于某些原因,它居中,但居中已关闭。如何更正此问题?将最外层div的宽度设置为100%,并使表格边距:0自动。以下是最终代码: <div class="container chat" style="width: 50%; margin: 0px auto;"> <div class="chat-bar"><h1>Wolf Valley Chat</h1></div> <div c
宽度设置为100%
,并使表格
边距:0自动
。以下是最终代码:
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table>
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
将最外层div的宽度设置为100%
,并使表格
边距:0自动
。以下是最终代码:
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table>
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
将最外层div的宽度设置为100%
,并使表格
边距:0自动
。以下是最终代码:
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table>
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
将最外层div的宽度设置为100%
,并使表格
边距:0自动
。以下是最终代码:
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table>
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
问题在于iframe的宽度,当它应该是100%时,您的iframe的宽度为800px
<div class="container chat" style="width: 100%">
<div class="chat-bar" style="text-align:center"><h1 style="color:white">Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="margin: 0 auto">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
问题在于iframe的宽度,当它应该是100%时,您的iframe的宽度为800px
<div class="container chat" style="width: 100%">
<div class="chat-bar" style="text-align:center"><h1 style="color:white">Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="margin: 0 auto">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
问题在于iframe的宽度,当它应该是100%时,您的iframe的宽度为800px
<div class="container chat" style="width: 100%">
<div class="chat-bar" style="text-align:center"><h1 style="color:white">Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="margin: 0 auto">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
问题在于iframe的宽度,当它应该是100%时,您的iframe的宽度为800px
<div class="container chat" style="width: 100%">
<div class="chat-bar" style="text-align:center"><h1 style="color:white">Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="margin: 0 auto">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false" async src="//st.chatango.com/js/gz/emb.js" style="width: 800px;height: 350px;">{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
</div>
狼谷聊天
("handle":"wolfvalleychat","arch","js","style","styles":"a"202020","b"91","c"ffffffff"","d"ffffffff""""34
如果要使用边距:0 auto
进行居中,必须定义div的宽度才能居中。您可以修复类容器聊天
的宽度。前
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="width: 100%;">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false"
async src="//st.chatango.com/js/gz/emb.js"
style="width: 100%;height: 350px;">
{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
如果要使用边距:0 auto
进行居中,必须定义div的宽度才能居中。您可以修复类容器聊天
的宽度。前
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="width: 100%;">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false"
async src="//st.chatango.com/js/gz/emb.js"
style="width: 100%;height: 350px;">
{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
如果要使用边距:0 auto
进行居中,必须定义div的宽度才能居中。您可以修复类容器聊天
的宽度。前
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="width: 100%;">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false"
async src="//st.chatango.com/js/gz/emb.js"
style="width: 100%;height: 350px;">
{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
如果要使用边距:0 auto
进行居中,必须定义div的宽度才能居中。您可以修复类容器聊天
的宽度。前
<div class="container chat" style="width: 50%; margin: 0px auto;">
<div class="chat-bar"><h1>Wolf Valley Chat</h1></div>
<div class="chat-content">
<table style="width: 100%;">
<tbody>
<script id="cid0020000091912718480" data-cfasync="false"
async src="//st.chatango.com/js/gz/emb.js"
style="width: 100%;height: 350px;">
{"handle":"wolfvalleychat","arch":"js","styles":{"a":"202020","b":91,"c":"FFFFFF","d":"FFFFFF","f":91,"i":91,"k":"202020","l":"202020","m":"202020","n":"FFFFFF","o":91,"p":"10","q":"202020","r":91,"t":0,"surl":0,"allowpm":0,"cnrs":"0.35","fwtickm":1}}</script>
</tbody>
</table>
</div>
您需要将表格和iframe的宽度设置为100%好的,我将宽度设置为100%,但没有,它已完全移动到leftdiv。容器需要保持与问题相同,div.chat-content中的表格需要具有100%的宽度,因为该表格中的iframe tooI尝试添加style=“width:109%;”在聊天内容中,但表格仍在页面的左侧。您需要将表格和iframe的宽度设置为100%好的,我将宽度设置为100%,但没有,它已完全移动到leftdiv。容器需要保持与问题中相同的状态,div.chat-content中的表格需要具有100%的宽度,作为该表中的iframe,我尝试在聊天内容中添加style=“width:109%”,但该表仍位于页面左侧。您需要设置