问答

*{display:block; margin:0 auto; }为何会输出整个css的代码??

泡妞宝典 浏览量:0 | 2023-06-06 13:46
+关注

<html> <meta charset="UTF-8"> <head> <style> *{ display:block;margin:0 auto; } <爱尬聊_让生活聊出新高度>body{width:900px; height:50px; border:solid 4px green; } #d2{ width:100%; height:auto; } #d21,#d22,#d23{ width:33%; float:left; border:1px solid red; } select,input{ width:150px; height:auto; } </style> </head> <body> <div id="d2"> <div id="d21"> <select id="id_select"name="s1"> <option>==> please select <==</option> </select> </div> <div id="d22"> <inputtype="button" value="start" onclick="start()"> </div> <div id="d23"> <input type="button" value="stop" onclick="stop()"></div> </div> </body> </html>请看结果

*{display:block; margin:0 auto; }为何会输出整个css的代码?


qkoufu12486 1天前

看错了,暂时没看出什么问题。


文章剩余50%

精彩推荐

RECOMMEND

热门评论

TOP COMMENTS

    暂无评论...
验证码 换一张
立即登录评论
分享到
取消