Where should I input HTML/CSS???

本文解答了在博客中使用HTML/CSS时遇到的问题,如预览时只显示代码而非预期的内容,以及如何确保自定义HTML/CSS正确显示。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Where should I input HTML/CSS???

提出问题:

1. 为什么我按照你的方法帖上去了, 可是预览时看到的都是代码, 没有显示出图片呀? 这是为什么拉?

2. 你好, 我照你的方法去连接视频到我的blog. 没发布前还可以看到... 发布后就没有了... 请问这是什么问题? 我的 连接是 <object width="425"><param name="movie" v... [该问题我将在最近几天给出详细的标签过滤列表... 耗时间...]


分析问题:

对于日志编辑器, 当且仅当在<HTML>模式下输入有且仅有安全的HTML/CSS标签才能被正确的显示出来, 这是充分条件还是必要条件? 忘了...

解决问题:

1.  点击<HTML>按钮




2. 此时除了剪切/复制/粘贴以及<HTML>按钮, 其他都应该为灰色非激活状态. 该模式为<HTML>输入模式, 此时你可以输入HTML代码了, 像<object>这些不安全的代码会被自动过滤.


3. 输入完毕后, 再点击一下<HTML>按钮就能看出效果了. 



3. 当然你也可以直接点预览来查看效果. 



对于Custom HTML模块, 该模块默认就是直接输入HTML/CSS代码, 保存完后 点击右上角的预览我的空间链接来查看效果. 相关教程 


 

<?php $footerColor = "#2196F3"; // 启动会话,这步必不可少 session_start(); // 判断是否登陆 if ($_SESSION['usrtag'] === 'admin') { //echo "您已经成功登陆"; } else { die("您无权访问"); } $conn = mysqli_connect("localhost:3306","visitor","helloitsme"); if (!$conn) { echo '请检查网络!'; die('Could not connect: ' . mysql_error()); } mysqli_select_db($conn,'rentcar'); $sql = "select * from bookrecord where result='booking'"; $res = mysqli_query($conn,$sql); $records=array(); while( $row = mysqli_fetch_array($res)){ $records[]=$row; } ?> <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>后台管理</title> <style type="text/css"> *{margin:0;padding:0;} body{background-color:white; width:100%;} .clear{clear:both;} #container{ background-color:#BBBBFF; height:510px; width:1500px; margin:auto;} #picture{height:470px; margin:0px;} #label{background-color:white; height:30px;} #container2{ background-color:white; width:800px; height:340px; margin:20px auto; } #content{ background-color:white; width:1000px; height:100px; margin:20px auto; } a { color: #F3ADAE; } a:link { color: #0B0B0B; text-decoration: none; } a:visited { color: #0B0B0B; text-decoration: none; } a:hover { color: #17E515; text-decoration: none; } a:active { text-decoration: none; } #division{ background-color:white; width:800px; height:70px; margin:20px auto; } </style> </head> <body> <div id="container"> <div id="picture"><img src="pics/主页.jpg" width="1500" height="471" alt=""/></div> <table width="1500px" border="1"> <tbody> <tr> <td width="50" height="30" align="center"><a href="adminuse.php">订单情况</a></td> <td width="50" align="center"><a href="tobedeal.php">待处理订单</a></td> <td width="50" align="center"><a href="upDate.php">商品数据更新</a></td> <td width="50" align="center"><a href="allusr.php">已注册用户资料</a></td> </tr> </tbody> </table> <div id="label"> </div> </div> <div id="division"> <hr></hr> </div> <center> <div id="666"> <center><table id='thetable' border='1' width = '1500'><caption><h3>待确认订单信息表</h3></caption> <tr><td>订单编号</td><td>账户名</td><td>客户邮箱</td><td>租借地点</td><td>租借时间</td><td>归还时间</td><td>处理进度</td><td>操作</td></tr> <?php foreach($records as $row) : ?> <tr id="id<?php echo $row['idbookrecord'];?>"> <td><?php echo $row['idbookrecord'];?></td> <td><?php echo $row['usrid'];?></td> <td><?php echo $row['personalid'];?></td> <td><?php echo $row['getcarplace'];?></td> <td><?php echo $row['starttime'];?></td> <td><?php echo $row['endtime'];?></td> <td><?php echo $row['result'];?></td> <td > <form action = "confirmrecord.php" method = "post"> <input type="hidden" name="thevalue1" value="<?php echo $row['idbookrecord'];?>"> <input type="submit" name="submit" value="确认" /> </form> <form action = "rejectrecord.php" method = "post"> <input type="hidden" name="thevalue2" value="<?php echo $row['idbookrecord'];?>"> <input type="submit" name="submit" value="拒绝" /> </form> </td> </tr> <?php endForeach;?> </table></center> </div> </center> <div id="division"> </div> <center> <div> <form action="logOut.php" method="post" onsubmit="return enter()"> <label><input class="submit" type="submit" name="logout" value="登出账户" /></label> </form> </div> </center> <div id="division"> <hr></hr> <div style="background-color:#BBBBFF; width:100%; padding:40px; "> <div class="copyright-section"> <center><p>充充宝公司版权所有©2024-2025</p><center> </div> <script> // function func1(self){ // //alert(self.innerHTML); // location.reload(); // } //a onclick="func1(this)">删除/a //$('#delete_button').click(function(){ // var comment_id = $(this).attr('id');//you should use the id of the comment as id for the delete button for this to work. // $.post('delete.php', {'comment_id' : comment_id}, function(){ // $(this).parent('div').remove(); //hide the comment from the user // }); // }); </script> </body> </html> 帮我检查这个代码,底边紫色无法扩充到网页边界
最新发布
06-18
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值