[英]How to change the value/content of my li tag on my navbar when i resized the window?
Good day Sir/Maam.. 先生/女士,早上好..
i just want to ask and get some idea from your opinion that you can give or if possible the exact code :) . 我只是想问一下你的意见,你可以给出或者如果可能的确切代码:)。 im working on my first website design and i have this problem which is how to change the value or content of my navbar when i full re-sized back my window. 我在我的第一个网站设计工作,我有这个问题,当我完全重新调整我的窗口大小时,如何更改我的导航栏的值或内容。 I dont have any idea how i could solve this.. so plss need help here.. thank you! 我不知道如何解决这个问题..所以这里需要帮助..谢谢!
this is the output of my sample Project 这是我的示例项目的输出
my navbar in full resized 我的导航栏已完全调整大小
my navbar when i resized in max-width 580px and clicked the menu bar 当我在最大宽度580px中调整大小并单击菜单栏时,我的导航栏
this is what it looks like when i full resized it again and gives me a hard time to think to turned it to normal.. 这就是我再次完全调整大小时的样子,让我很难想到把它变成正常的...
sorry for my bad english.. hope to understand my problem and give some idea to solve this.. thanks a lot! 对不起我的英语不好..希望了解我的问题并给出一些想法来解决这个问题..非常感谢!
if you need to do as exactly a in the pictures use CSS 如果你需要像照片中那样使用CSS
@media only screen and (max-width: 768px) {
.your_class{
font-size:0px;
}
}
change width according to needs. 根据需要改变宽度。 You can also use min-width. 你也可以使用最小宽度。
you could look for css media queries: 你可以寻找css媒体查询:
@media (max-width: 600px) { li span { /* on mobile screens span will be hidden try resizing. */ display: none; } }
<ul> <li>icon <span>users</span></li> <li>icon <span>profile</span></li> <li>icon <span>mail</span></li> </ul>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.