会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晨光曦微
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
36
37
38
39
40
41
42
43
44
···
74
下一页
2020年9月24日
用行内块实现分页样式
摘要: 代码 <style type="text/css"> *{/*去除默认的距离*/ margin: 0; padding: 0; } .box{text-align: center;} /*让盒子内所有a元素水平居中*/ .box a{ display: inline-block; width: 36
阅读全文
posted @ 2020-09-24 11:05 晨光曦微
阅读(126)
评论(0)
推荐(0)
2020年9月20日
排产品时,解决border占用宽度问题
摘要: 解决代码 <style> .pro li{ list-style: none; width: 150px; height: 200px; float: left; border: 1px solid red; /*关键:给每个盒子加一个-1的位置,即向左移动1像素*/ margin-left: -1
阅读全文
posted @ 2020-09-20 17:55 晨光曦微
阅读(545)
评论(0)
推荐(0)
vertical-align行内元素垂直对齐方式的实用、图片询问有个小空白的解决
摘要: 文档:https://www.w3school.com.cn/css/pr_pos_vertical-align.asp <style> .inline1 img{ width: 50px; height: 50px; border-radius:25px; /*vertical-align:bas
阅读全文
posted @ 2020-09-20 16:30 晨光曦微
阅读(153)
评论(0)
推荐(0)
css样式对话框小三角写法
摘要: 三角写法: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>小三角
阅读全文
posted @ 2020-09-20 15:59 晨光曦微
阅读(602)
评论(0)
推荐(0)
使用字体图标完整步骤
摘要: 一、基础使用字体图标 常用下载: https://icomoon.io/ 的ico的app即: https://icomoon.io/app/#/select 选择——创建——下载 https://www.iconfont.cn/ 二、下载下来的字体解压 把内部的fonts文件夹拿出来放入项目根目录
阅读全文
posted @ 2020-09-20 15:12 晨光曦微
阅读(451)
评论(0)
推荐(0)
用position:absolute定位小窗口位于版面正中心
摘要: <style> .f2{ width: 200px; height: 200px; background-color: red; /*第一步:设置定位为absolute*/ position: absolute; /*第二步:当前盒子的边:定位于,窗口正中,注意只是边定位于中心了*/ top:50%
阅读全文
posted @ 2020-09-20 12:10 晨光曦微
阅读(316)
评论(0)
推荐(0)
用position:fixed定位小图标位于版面一侧固定距离
摘要: 效果: <style> .f1{ /*设置版面宽度为800*/ width: 800px; height: 800px; background-color: skyblue; /*版面让左右自动实现居中*/ margin:0 auto; } .f2{ width: 100px; height: 20
阅读全文
posted @ 2020-09-20 12:05 晨光曦微
阅读(396)
评论(0)
推荐(0)
2020年9月19日
h5 cs3 复习
摘要: 二、块元素 2.2块元素 常见的块元素有 <h1>~<h6>、 <p> <div> <ul>、 <ol>、 <li>`等 其中<div>标签是最典型的块元素。 块级元素的特点: ①比较霸道,自己独占一行。 ②高度,宽度、外边距以及内边距都可以控制。 ③宽度默认是容器(父级宽度)的100%。 ④是一个
阅读全文
posted @ 2020-09-19 21:49 晨光曦微
阅读(130)
评论(0)
推荐(0)
绿色软件 win7 打开方式不能添加程序
摘要: 问题分析:一般是之前加过一个同样的软件导致 解决方法: ##【Windows 7及以上】 点击“开始”—“运行” 输入“regedit”打开注册表,在 “HKEY_CLASSES_ROOT\Applications\” 中找到无法添加的程序( 或直接ctrl+f 搜索,比如kmplayer ), 找
阅读全文
posted @ 2020-09-19 11:10 晨光曦微
阅读(646)
评论(0)
推荐(0)
2020年9月18日
超出宽度的字,变省略号
摘要: 1.单行省略号 .p01{ width: 400px; /*1.必须有宽度否则无效*/ white-space:nowrap; /*2.文字必须强制不换行*/ overflow: hidden; /*3.此必须加否则无效*/ text-overflow: ellipsis; /*4文字超出显示省略号
阅读全文
posted @ 2020-09-18 21:04 晨光曦微
阅读(244)
评论(0)
推荐(0)
上一页
1
···
36
37
38
39
40
41
42
43
44
···
74
下一页
公告