</style> <body id="body"> <div id="left_side"> <ul> <li>修改已退备注</li> </ul> </div> <div id="right_side"> <form action="/do_change_yitui" method="post"> <!-- 定义一个多行的文本输入--> 已选择的运单号: <br> <input type="text" name="yundanhao" value="{{ids}}" > <br> <br> <input type="text" name="beizhu" placeholder="点此输入备注"> <br> <br> <input type="submit" value="提交"> </form>为什么css未生效
时间: 2023-09-27 19:06:11 浏览: 52
根据您提供的代码,缺少`<head>`标签,这可能会导致CSS样式无法正确加载。请确保在HTML文档中添加<head>和</head>标记,并将CSS样式放置在<head>标记之间,例如:
```
<!DOCTYPE html>
<html>
<head>
<style>
input[type="text"] {
resize: both;
}
</style>
</head>
<body id="body">
<div id="left_side">
<ul>
<li>修改已退备注</li>
</ul>
</div>
<div id="right_side">
<form action="/do_change_yitui" method="post">
<!--定义一个多行的文本输入-->
已选择的运单号:
<br>
<input type="text" name="yundanhao" value="{{ids}}" >
<br>
<br>
<input type="text" name="beizhu" placeholder="点此输入备注">
<br>
<br>
<input type="submit" value="提交">
</form>
</div>
</body>
</html>
```
如果仍然无法生效,请确保CSS样式文件的路径正确,并检查浏览器控制台是否有任何错误消息。
相关推荐
![application/msword](https://img-home.csdnimg.cn/images/20210720083327.png)
![application/x-rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![html](https://img-home.csdnimg.cn/images/20210720083451.png)
![html](https://img-home.csdnimg.cn/images/20210720083451.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![png](https://img-home.csdnimg.cn/images/20210720083516.png)
![xlsx](https://img-home.csdnimg.cn/images/20210720083732.png)