随笔分类 -  →html

摘要:如果您希望放大的效果较小,可以调整示例代码中的transform: scale()的值。以下是一个示例,将按钮的放大比例减小到1.1: <p style="text-align: center;"><img class="btn1" src="static/picture/band.png" sty 阅读全文
posted @ 2023-09-14 03:20 JS脚本 阅读(20) 评论(0) 推荐(0) 编辑
摘要:1 div里就写在class里面 这将为按钮添加一个名为bounce的关键帧动画,其中按钮将在不同的时间点上以一定的距离向上抖动。然后,通过将bounce_small_infinite类应用于按钮的父容器,您可以使按钮无限地应用这个抖动动画。 class=" bounce_small_infinit 阅读全文
posted @ 2023-09-10 15:54 JS脚本 阅读(45) 评论(0) 推荐(0) 编辑
摘要:flex-directionrow:横向从左到右排列(左对齐),默认的排列方式 属性 从左到右的属性 <div id="zy" style="display: flex; justify-content: center; flex-direction: row;"> div1 div2 div3 < 阅读全文
posted @ 2023-09-07 15:43 JS脚本 阅读(118) 评论(0) 推荐(0) 编辑
摘要:<html> <head></head> <body> <div class='A' style="display: grid "> <!--grid 向下排列--> <div class="c1" style="display: flex; justify-content: center;"> < 阅读全文
posted @ 2023-08-13 01:10 JS脚本 阅读(42) 评论(0) 推荐(0) 编辑
摘要:style='white-space: nowrap;' 这将强制文本在一行中显示,而不会换行 style="max-width: 150%; max-height: 150%; 图片宽度大小 阅读全文
posted @ 2023-06-08 00:10 JS脚本 阅读(90) 评论(0) 推荐(0) 编辑
摘要:HTML中设置繁体字非常简单,只需要在CSS样式表中使用正确的字体即可。通常情况下,电脑中已经安装的字体库中就包含了繁体字体。 要设置繁体字体,可以使用font-family属性,并将属性值设置为包含繁体字体的字体名称,例如Microsoft JhengHei、TW-Kai等等。 以下是一个简单的示 阅读全文
posted @ 2023-05-27 01:00 JS脚本 阅读(836) 评论(0) 推荐(0) 编辑
摘要:在div上居中 <div class="container" style="display: flex; justify-content: center; align-items: center; "> 在圖像調 <img id=im1 style="max-width: 150%; max-hei 阅读全文
posted @ 2023-05-13 21:17 JS脚本 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示